We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eeccf54 + b3823d5 commit c29c1f8Copy full SHA for c29c1f8
spec/rack-change-password-url/middleware_spec.rb
@@ -50,7 +50,11 @@
50
get @path
51
52
expect(last_response.status).to eq 200
53
- expect(last_response.headers).to eq({})
+ if Gem::Version.new(Rack.release) >= Gem::Version.new("3.1.0")
54
+ expect(last_response.headers).to eq({ "content-length" => "16" })
55
+ else
56
+ expect(last_response.headers).to eq({})
57
+ end
58
expect(last_response.body).to eq 'Example App Body'
59
end
60
0 commit comments