BigW Consortium Gitlab

Commit da0852e0 by Grzegorz Bizon

Improve specs for pipeline and pipeline seeds

parent 25b26c2f
...@@ -30,7 +30,7 @@ describe Gitlab::Ci::Stage::Seed do ...@@ -30,7 +30,7 @@ describe Gitlab::Ci::Stage::Seed do
end end
describe '#user=' do describe '#user=' do
let(:user) { create(:user) } let(:user) { build(:user) }
it 'assignes relevant pipeline attributes' do it 'assignes relevant pipeline attributes' do
subject.user = user subject.user = user
......
...@@ -535,9 +535,9 @@ describe Ci::Pipeline, models: true do ...@@ -535,9 +535,9 @@ describe Ci::Pipeline, models: true do
end end
end end
describe '#has_stage_seedss?' do describe '#has_stage_seeds?' do
context 'when pipeline has stage seeds' do context 'when pipeline has stage seeds' do
subject { create(:ci_pipeline_with_one_job) } subject { build(:ci_pipeline_with_one_job) }
it { is_expected.to have_stage_seeds } it { is_expected.to have_stage_seeds }
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