add a cron to the test
This commit is contained in:
parent
1733ea69d5
commit
291fea3e07
|
@ -23,6 +23,7 @@ describe Travis::API::V3::Queries::Crons do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'enques error into a thread' do
|
it 'enques error into a thread' do
|
||||||
|
cron = Travis::API::V3::Models::Cron.create(branch_id: existing_branch.id, interval: 'daily', disable_by_build: false)
|
||||||
error = StandardError.new('Konstantin broke all the thingz!')
|
error = StandardError.new('Konstantin broke all the thingz!')
|
||||||
Travis::API::V3::Models::Cron.any_instance.stubs(:branch).raises(error)
|
Travis::API::V3::Models::Cron.any_instance.stubs(:branch).raises(error)
|
||||||
Raven.expects(:capture_exception).with do |event|
|
Raven.expects(:capture_exception).with do |event|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user