spec/airborne/base_spec.rb in airborne-0.1.20 vs spec/airborne/base_spec.rb in airborne-0.2.0
- old
+ new
@@ -15,10 +15,10 @@
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 { json_body }.to raise_error
+ 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')
get '/simple_get'