Commit 6d712148 authored by Shinya Maeda's avatar Shinya Maeda Committed by Alessio Caiazza

Fix build_spec

parent f228f23a
...@@ -243,12 +243,16 @@ describe Ci::Build do ...@@ -243,12 +243,16 @@ describe Ci::Build do
let(:build) { create(:ci_build, :created, :schedulable, user: user, project: project) } let(:build) { create(:ci_build, :created, :schedulable, user: user, project: project) }
it 'transits to scheduled' do it 'transits to scheduled' do
allow(Ci::BuildScheduleWorker).to receive(:perform_at)
subject subject
expect(build).to be_scheduled expect(build).to be_scheduled
end end
it 'updates scheduled_at column' do it 'updates scheduled_at column' do
allow(Ci::BuildScheduleWorker).to receive(:perform_at)
subject subject
expect(build.scheduled_at).not_to be_nil expect(build.scheduled_at).not_to be_nil
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment