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.
1 parent 9731969 commit 69fde96Copy full SHA for 69fde96
spec/rack/reverse_proxy_spec.rb
@@ -120,10 +120,12 @@ def app
120
end
121
122
it "the response header includes content-length" do
123
- body = 'this is the test body'
124
- stub_request(:any, 'example.com/test/stuff').to_return(:body => body, :headers => {'Content-Length' => '10'})
125
- get '/test/stuff'
126
- expect(last_response.headers['Content-Length']).to eq(body.length.to_s)
+ body = "this is the test body"
+ stub_request(:any, "example.com/test/stuff").to_return(
+ :body => body, :headers => { "Content-Length" => "10" }
+ )
127
+ get "/test/stuff"
128
+ expect(last_response.headers["Content-Length"]).to eq(body.length.to_s)
129
130
131
describe "with non-default port" do
0 commit comments