Skip to content

Commit 0d5f8cc

Browse files
committed
Newer versions of Rack do not return Version.
1 parent 604f312 commit 0d5f8cc

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

spec/api/headers_spec.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
describe Acme::Headers do
44
it 'returns all headers' do
55
get '/api/headers'
6-
expect(JSON.parse(response.body)).to eq(
6+
expect(JSON.parse(response.body)).to include(
77
'Accept' => 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
88
'Cookie' => '',
9-
'Host' => 'www.example.com',
10-
'Version' => 'HTTP/1.0'
9+
'Host' => 'www.example.com'
1110
)
1211
end
1312

@@ -27,13 +26,12 @@
2726
'Something' => 1,
2827
'SOMETHING_ELSE' => 1
2928
}
30-
expect(JSON.parse(response.body)).to eq(
29+
expect(JSON.parse(response.body)).to include(
3130
'Accept' => 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
3231
'Cookie' => '',
3332
'Host' => 'www.example.com',
3433
'Reticulated-Spline' => 42,
35-
'Something' => 1,
36-
'Version' => 'HTTP/1.0'
34+
'Something' => 1
3735
)
3836
end
3937
end

0 commit comments

Comments
 (0)