Skip to content

Commit

Permalink
Lowercase header key in test
Browse files Browse the repository at this point in the history
Rack 3 now lowercases all header keys [1].

Therefore we need to lowercase the keys in test expectations.

1: https://rubydoc.info/github/rack/rack/Rack/Headers
  • Loading branch information
brucebolt committed Nov 21, 2024
1 parent eecab7f commit 2ed7689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/integration/fetching_content_item_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
end

it "sets a access-control-allow-origin header to allow cross origin requests" do
expect(response.headers.to_h).to include({ "Access-Control-Allow-Origin" => "*" })
expect(response.headers.to_h).to include({ "access-control-allow-origin" => "*" })
end

context "when the user is not authenticated" do
Expand Down

0 comments on commit 2ed7689

Please sign in to comment.