try to get spec to pass

This commit is contained in:
carlad 2016-07-26 15:35:41 +02:00
parent c90991e10a
commit e31976974c

View File

@ -33,7 +33,8 @@ describe Travis::API::V3::Queries::Crons do
it 'enques error into a thread' do
error = StandardError.new('Konstantin broke all the thingz!')
Travis::API::V3::Models::Cron.any_instance.stubs(:branch).raises(error)
Travis::API::V3::Services::Crons::ForRepository.any_instance.stubs(:run!).raises(error)
Raven.expects(:send_event).with do |event|
event.message == "#{error.class}: #{error.message}"
end