summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/ci/config/entry/need_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-01 12:06:26 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-01 12:06:26 +0000
commitdeed6022efe0149d88c57ef1df736c83465643f9 (patch)
tree4cf4c7c1ce765e83547129607b6bd3881c0fad6b /spec/lib/gitlab/ci/config/entry/need_spec.rb
parentf7a13c56bf0ed7ff9591bf4cbf9e50487255c4bc (diff)
downloadgitlab-ce-deed6022efe0149d88c57ef1df736c83465643f9.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/ci/config/entry/need_spec.rb')
-rw-r--r--spec/lib/gitlab/ci/config/entry/need_spec.rb36
1 files changed, 0 insertions, 36 deletions
diff --git a/spec/lib/gitlab/ci/config/entry/need_spec.rb b/spec/lib/gitlab/ci/config/entry/need_spec.rb
deleted file mode 100644
index d119e604900..00000000000
--- a/spec/lib/gitlab/ci/config/entry/need_spec.rb
+++ /dev/null
@@ -1,36 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-describe ::Gitlab::Ci::Config::Entry::Need do
- subject(:need) { described_class.new(config) }
-
- context 'when job is specified' do
- let(:config) { 'job_name' }
-
- describe '#valid?' do
- it { is_expected.to be_valid }
- end
-
- describe '#value' do
- it 'returns job needs configuration' do
- expect(need.value).to eq(name: 'job_name')
- end
- end
- end
-
- context 'when need is empty' do
- let(:config) { '' }
-
- describe '#valid?' do
- it { is_expected.not_to be_valid }
- end
-
- describe '#errors' do
- it 'is returns an error about an empty config' do
- expect(need.errors)
- .to contain_exactly("job config can't be blank")
- end
- end
- end
-end