Commit 699ba7f5 authored by Rémy Coutable's avatar Rémy Coutable

[EE] Reduce diff with CE in spec/models/ci/build_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 7465c61d
...@@ -15,6 +15,8 @@ describe Ci::Build do ...@@ -15,6 +15,8 @@ describe Ci::Build do
let(:job) { create(:ci_build, pipeline: pipeline) } let(:job) { create(:ci_build, pipeline: pipeline) }
it { is_expected.to have_many(:sourced_pipelines) }
describe '#shared_runners_minutes_limit_enabled?' do describe '#shared_runners_minutes_limit_enabled?' do
subject { job.shared_runners_minutes_limit_enabled? } subject { job.shared_runners_minutes_limit_enabled? }
......
...@@ -19,7 +19,6 @@ describe Ci::Build do ...@@ -19,7 +19,6 @@ describe Ci::Build do
it { is_expected.to belong_to(:runner) } it { is_expected.to belong_to(:runner) }
it { is_expected.to belong_to(:trigger_request) } it { is_expected.to belong_to(:trigger_request) }
it { is_expected.to belong_to(:erased_by) } it { is_expected.to belong_to(:erased_by) }
it { is_expected.to have_many(:sourced_pipelines) }
it { is_expected.to have_many(:trace_sections)} it { is_expected.to have_many(:trace_sections)}
it { is_expected.to have_one(:deployment) } it { is_expected.to have_one(:deployment) }
it { is_expected.to have_one(:runner_session)} it { is_expected.to have_one(:runner_session)}
......
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