From 2ed76892f890734bf99d082885035becf10fc578 Mon Sep 17 00:00:00 2001 From: Bruce Bolt Date: Thu, 21 Nov 2024 16:52:52 +0000 Subject: [PATCH] Lowercase header key in test 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 --- spec/integration/fetching_content_item_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integration/fetching_content_item_spec.rb b/spec/integration/fetching_content_item_spec.rb index f423e3cd1..4db51888f 100644 --- a/spec/integration/fetching_content_item_spec.rb +++ b/spec/integration/fetching_content_item_spec.rb @@ -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