Skip to content

Commit

Permalink
Fix Rack::Response#header deprecation warning
Browse files Browse the repository at this point in the history
andyjdavis committed Nov 17, 2023
1 parent 68f1e19 commit 395c593
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/rack_middleware_spec.rb
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@

it "doesn't include an X-Rack-ECG-Version custom header" do
get "/hello/world"
expect(last_response.header["X-Rack-ECG-Version"]).to(be_nil)
expect(last_response.headers["X-Rack-ECG-Version"]).to(be_nil)
end
end

@@ -42,7 +42,7 @@

it "includes an X-Rack-ECG-Version custom header" do
get "/_ecg"
expect(last_response.header["X-Rack-ECG-Version"]).to(eq(Rack::ECG::VERSION))
expect(last_response.headers["X-Rack-ECG-Version"]).to(eq(Rack::ECG::VERSION))
end

context "when `at` config option is set" do
@@ -52,7 +52,7 @@

it "responds from that path" do
get "/health_check"
expect(last_response.header["X-Rack-ECG-Version"]).to(eq(Rack::ECG::VERSION))
expect(last_response.headers["X-Rack-ECG-Version"]).to(eq(Rack::ECG::VERSION))
end
end

0 comments on commit 395c593

Please sign in to comment.