diff --git a/spec/integration/error_handling_spec.rb b/spec/integration/error_handling_spec.rb index 8e04d1d2..246a0eb7 100644 --- a/spec/integration/error_handling_spec.rb +++ b/spec/integration/error_handling_spec.rb @@ -26,7 +26,7 @@ describe 'Exception' do it 'enques error into a thread' do error = TestError.new('Konstantin broke all the thingz!') Travis::Api::App::Endpoint::Repos.any_instance.stubs(:service).raises(error) - Raven.expects(:send).with do |event| + Raven.expects(:send_event).with do |event| event.message == "#{error.class}: #{error.message}" end expect { get "/repos" }.to raise_error(TestError)