summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-12 14:58:48 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-12 14:58:48 +0200
commitb228787f5afa34b153e6b52d6b0d88248cc3e099 (patch)
tree6acf3b9ca83ec270a53ac26b646d61a1427055e0 /spec
parent61f7bede79a006c7b44e88a3385d175c5ad2a863 (diff)
downloadgitlab-ce-b228787f5afa34b153e6b52d6b0d88248cc3e099.tar.gz
Do not raise when getting value of invalid CI node
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/ci/config/node/global_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/lib/gitlab/ci/config/node/global_spec.rb b/spec/lib/gitlab/ci/config/node/global_spec.rb
index 1945b0326cc..3ffbe9c2e97 100644
--- a/spec/lib/gitlab/ci/config/node/global_spec.rb
+++ b/spec/lib/gitlab/ci/config/node/global_spec.rb
@@ -209,10 +209,8 @@ describe Gitlab::Ci::Config::Node::Global do
end
describe '#before_script' do
- it 'raises error' do
- expect { global.before_script }.to raise_error(
- Gitlab::Ci::Config::Node::Entry::InvalidError
- )
+ it 'returns nil' do
+ expect(global.before_script).to be_nil
end
end
end