spec/airborne/base_spec.rb in airborne-0.2.5 vs spec/airborne/base_spec.rb in airborne-0.2.6
- old
+ new
@@ -14,10 +14,10 @@
end
it 'should throw an InvalidJsonError when accessing json_body on invalid json' do
mock_get('invalid_json')
get '/invalid_json'
- expect(body).to eq('1234')
+ expect(body).to eq('invalid1234')
expect { json_body }.to raise_error(InvalidJsonError)
end
it 'when request is made headers should be hash with indifferent access' do
mock_get('simple_get', 'Content-Type' => 'application/json')