remove expectation

This commit is contained in:
carlad 2016-07-26 16:49:22 +02:00
parent 543998feea
commit 1733ea69d5

View File

@ -14,7 +14,6 @@ describe Travis::API::V3::Queries::Crons 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)
expect(query.start_all).to include(cron)
end
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
error = StandardError.new('Konstantin broke all the thingz!')
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}"
end
expect { get "/repo/#{repo.id}/crons" }.to raise_error(error)
query.start_all
end
end
end