Commit da0852e0 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Improve specs for pipeline and pipeline seeds

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