From 21c714ae97e73a21c4aa97933e21a511f5b513c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Hendricksen?= Date: Mon, 30 May 2016 17:31:37 +0200 Subject: [PATCH] fix the test --- spec/integration/error_handling_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)