Add missing build_spec
This commit is contained in:
parent
8171a1932b
commit
1c7eb963f5
|
@ -1401,4 +1401,14 @@ describe Ci::Build, :models do
|
|||
it { is_expected.to eq(%w[predefined project pipeline yaml secret]) }
|
||||
end
|
||||
end
|
||||
|
||||
describe 'State transition: any => [:pending]' do
|
||||
let(:build) { create(:ci_build, :created) }
|
||||
|
||||
it 'queues BuildQueueWorker' do
|
||||
expect(BuildQueueWorker).to receive(:perform_async).with(build.id)
|
||||
|
||||
build.enqueue
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue