Commit 2d0cd526 authored by Kamil Trzciński's avatar Kamil Trzciński

Fix spec failures

parent 6893a3a4
...@@ -352,7 +352,7 @@ module Ci ...@@ -352,7 +352,7 @@ module Ci
end end
context 'runner feature set is verified' do context 'runner feature set is verified' do
set(:pending_job) { create(:ci_build, :pending, pipeline: pipeline) } let!(:pending_job) { create(:ci_build, :pending, pipeline: pipeline) }
before do before do
expect_any_instance_of(Ci::Build).to receive(:runner_required_feature_names) do expect_any_instance_of(Ci::Build).to receive(:runner_required_feature_names) do
...@@ -364,7 +364,7 @@ module Ci ...@@ -364,7 +364,7 @@ module Ci
context 'when feature is missing by runner' do context 'when feature is missing by runner' do
let(:params) { {} } let(:params) { {} }
it 'does not pick the build and drops the build' do it 'does not pick the build and drops the build' do
expect(subject).to be_nil expect(subject).to be_nil
expect(pending_job.reload).to be_failed expect(pending_job.reload).to be_failed
......
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