diff options
Diffstat (limited to 'spec/lib/gitlab/ci/config/entry/job_spec.rb')
-rw-r--r-- | spec/lib/gitlab/ci/config/entry/job_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/lib/gitlab/ci/config/entry/job_spec.rb b/spec/lib/gitlab/ci/config/entry/job_spec.rb index 649689f7d3b..313b504ab59 100644 --- a/spec/lib/gitlab/ci/config/entry/job_spec.rb +++ b/spec/lib/gitlab/ci/config/entry/job_spec.rb @@ -110,6 +110,10 @@ describe Gitlab::Ci::Config::Entry::Job do it { expect(entry).to be_valid } + it "returns scheduling_type as :dag" do + expect(entry.value[:scheduling_type]).to eq(:dag) + end + context 'when has dependencies' do let(:config) do { @@ -598,7 +602,8 @@ describe Gitlab::Ci::Config::Entry::Job do ignore: false, after_script: %w[cleanup], only: { refs: %w[branches tags] }, - variables: {}) + variables: {}, + scheduling_type: :stage) end end end |