Skip to content

Commit 69fde96

Browse files
committed
Satisfy rubocop
1 parent 9731969 commit 69fde96

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

spec/rack/reverse_proxy_spec.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,12 @@ def app
120120
end
121121

122122
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)
123+
body = "this is the test body"
124+
stub_request(:any, "example.com/test/stuff").to_return(
125+
:body => body, :headers => { "Content-Length" => "10" }
126+
)
127+
get "/test/stuff"
128+
expect(last_response.headers["Content-Length"]).to eq(body.length.to_s)
127129
end
128130

129131
describe "with non-default port" do

0 commit comments

Comments
 (0)