summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-13 12:22:33 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-13 12:22:33 +0200
commitde4c9a273867864a9033dab0624e0cfd72201384 (patch)
treed0641ba36429687cdd2eca3b98d448b249818815 /spec/lib
parentb228787f5afa34b153e6b52d6b0d88248cc3e099 (diff)
downloadgitlab-ce-de4c9a273867864a9033dab0624e0cfd72201384.tar.gz
Improve CI stage configuration entry validations
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/ci/config/node/stage_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/ci/config/node/stage_spec.rb b/spec/lib/gitlab/ci/config/node/stage_spec.rb
index 6deeca1a6c0..004012f8b38 100644
--- a/spec/lib/gitlab/ci/config/node/stage_spec.rb
+++ b/spec/lib/gitlab/ci/config/node/stage_spec.rb
@@ -28,10 +28,10 @@ describe Gitlab::Ci::Config::Node::Stage do
context 'when stage config is incorrect' do
describe '#errors' do
context 'when reference to global node is not set' do
- let(:stage) { described_class.new(config) }
+ let(:stage) { described_class.new('test') }
it 'raises error' do
- expect { stage }.to raise_error(
+ expect { stage.validate! }.to raise_error(
Gitlab::Ci::Config::Node::Entry::InvalidError,
/Entry needs global attribute set internally./
)