spec/grape/middleware/formatter_spec.rb in grape-0.12.0 vs spec/grape/middleware/formatter_spec.rb in grape-0.13.0

- old
+ new

@@ -108,14 +108,9 @@ it 'detects from the Accept header' do subject.call('PATH_INFO' => '/info', 'HTTP_ACCEPT' => 'application/xml') expect(subject.env['api.format']).to eq(:xml) end - it 'looks for case-indifferent headers' do - subject.call('PATH_INFO' => '/info', 'http_accept' => 'application/xml') - expect(subject.env['api.format']).to eq(:xml) - end - it 'uses quality rankings to determine formats' do subject.call('PATH_INFO' => '/info', 'HTTP_ACCEPT' => 'application/json; q=0.3,application/xml; q=1.0') expect(subject.env['api.format']).to eq(:xml) subject.call('PATH_INFO' => '/info', 'HTTP_ACCEPT' => 'application/json; q=1.0,application/xml; q=0.3') expect(subject.env['api.format']).to eq(:json)