spec/airborne/base_spec.rb in airborne-0.1.11 vs spec/airborne/base_spec.rb in airborne-0.1.12

- old
+ new

@@ -32,12 +32,13 @@ get '/simple_get' expect(json_body).to be_kind_of(Hash) expect(json_body.first[0]).to be_kind_of(Symbol) end - it 'should error on invalid JSON' do + it 'should set json_body to nil on invalid json' do mock_get('invalid_get') - expect{get '/invalid_get'}.to raise_error + get '/invalid_get' + expect(json_body).to be(nil) 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