Fix build_spec
This commit is contained in:
parent
f228f23a32
commit
6d712148c9
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue