spec/airborne/base_spec.rb in airborne-0.1.6 vs spec/airborne/base_spec.rb in airborne-0.1.7

- old
+ new

@@ -32,13 +32,12 @@ get '/simple_get' expect(json_body).to be_kind_of(Hash) expect(json_body.first[0]).to be_kind_of(Symbol) end - it 'should not error on invalid JSON' do + it 'should error on invalid JSON' do mock_get('invalid_get') - get '/invalid_get' - expect(json_body).to be(nil) + expect{get '/invalid_get'}.to raise_error end it 'should handle a 500 error on get' do mock_get('simple_get', {}, [500, "Internal Server Error"]) get '/simple_get' \ No newline at end of file