remove expectation
This commit is contained in:
parent
543998feea
commit
1733ea69d5
|
@ -14,7 +14,6 @@ describe Travis::API::V3::Queries::Crons do
|
||||||
it "starts crons on existing branches" do
|
it "starts crons on existing branches" do
|
||||||
cron = Travis::API::V3::Models::Cron.create(branch_id: existing_branch.id, interval: 'daily', disable_by_build: false)
|
cron = Travis::API::V3::Models::Cron.create(branch_id: existing_branch.id, interval: 'daily', disable_by_build: false)
|
||||||
expect(query.start_all).to include(cron)
|
expect(query.start_all).to include(cron)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it "delete crons on branches not existing on GitHub" do
|
it "delete crons on branches not existing on GitHub" do
|
||||||
|
@ -26,10 +25,10 @@ describe Travis::API::V3::Queries::Crons do
|
||||||
it 'enques error into a thread' do
|
it 'enques error into a thread' do
|
||||||
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(:send_event).with do |event|
|
Raven.expects(:capture_exception).with do |event|
|
||||||
event.message == "#{error.class}: #{error.message}"
|
event.message == "#{error.class}: #{error.message}"
|
||||||
end
|
end
|
||||||
expect { get "/repo/#{repo.id}/crons" }.to raise_error(error)
|
query.start_all
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user