Fix build_spec

This commit is contained in:
Shinya Maeda 2018-09-27 13:30:16 +09:00 committed by Alessio Caiazza
parent f228f23a32
commit 6d712148c9

View file

@ -243,12 +243,16 @@ describe Ci::Build do
let(:build) { create(:ci_build, :created, :schedulable, user: user, project: project) }
it 'transits to scheduled' do
allow(Ci::BuildScheduleWorker).to receive(:perform_at)
subject
expect(build).to be_scheduled
end
it 'updates scheduled_at column' do
allow(Ci::BuildScheduleWorker).to receive(:perform_at)
subject
expect(build.scheduled_at).not_to be_nil