Commit 1c7eb963 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Add missing build_spec

parent 8171a193
...@@ -1401,4 +1401,14 @@ describe Ci::Build, :models do ...@@ -1401,4 +1401,14 @@ describe Ci::Build, :models do
it { is_expected.to eq(%w[predefined project pipeline yaml secret]) } it { is_expected.to eq(%w[predefined project pipeline yaml secret]) }
end end
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 end
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