spec/grape/middleware/formatter_spec.rb in grape-1.7.1 vs spec/grape/middleware/formatter_spec.rb in grape-1.8.0

- old
+ new

@@ -403,10 +403,10 @@ it 'returns a file response' do expect(file).to receive(:each).and_yield('data') env = { 'PATH_INFO' => '/somewhere', 'HTTP_ACCEPT' => 'application/json' } status, headers, body = subject.call(env) expect(status).to be == 200 - expect(headers).to be == { 'Content-Type' => 'application/json' } + expect(headers.transform_keys(&:downcase)).to be == { 'content-type' => 'application/json' } expect(read_chunks(body)).to be == ['data'] end end context 'inheritable formatters' do