summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-08-29 09:20:53 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-08-29 09:20:53 +0200
commitb125006517db2b20a29ebbb9e7ad6f6ef03a216f (patch)
tree45074a7911e49bb33c209b5755a1f5afd1094012 /spec/lib
parent68b3c8c2973a8fe1ee3f51091394acef2a25789d (diff)
downloadgitlab-ce-b125006517db2b20a29ebbb9e7ad6f6ef03a216f.tar.gz
Do not enforce using a hash with hidden ci key
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/ci/config/node/hidden_job_spec.rb15
1 files changed, 2 insertions, 13 deletions
diff --git a/spec/lib/gitlab/ci/config/node/hidden_job_spec.rb b/spec/lib/gitlab/ci/config/node/hidden_job_spec.rb
index cc44e2cc054..ddc39405bbe 100644
--- a/spec/lib/gitlab/ci/config/node/hidden_job_spec.rb
+++ b/spec/lib/gitlab/ci/config/node/hidden_job_spec.rb
@@ -5,11 +5,11 @@ describe Gitlab::Ci::Config::Node::HiddenJob do
describe 'validations' do
context 'when entry config value is correct' do
- let(:config) { { image: 'ruby:2.2' } }
+ let(:config) { [:some, :array] }
describe '#value' do
it 'returns key value' do
- expect(entry.value).to eq(image: 'ruby:2.2')
+ expect(entry.value).to eq [:some, :array]
end
end
@@ -21,17 +21,6 @@ describe Gitlab::Ci::Config::Node::HiddenJob do
end
context 'when entry value is not correct' do
- context 'incorrect config value type' do
- let(:config) { ['incorrect'] }
-
- describe '#errors' do
- it 'saves errors' do
- expect(entry.errors)
- .to include 'hidden job config should be a hash'
- end
- end
- end
-
context 'when config is empty' do
let(:config) { {} }