summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-15 22:35:29 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-15 22:49:18 +0200
commit17084d42aa4f2a9d58d6b6d30656d5b7cfffe007 (patch)
treea0a67c65421ee9d7e788e4d744c034dff24e8312 /spec
parent4bb60b0789a31061cbc81af90b7d5dc558f985b3 (diff)
downloadgitlab-ce-17084d42aa4f2a9d58d6b6d30656d5b7cfffe007.tar.gz
Simplify abstract class for CI config entry nodes
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/ci/config/node/global_spec.rb14
1 files changed, 10 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 2a071b57c72..2f87d270b36 100644
--- a/spec/lib/gitlab/ci/config/node/global_spec.rb
+++ b/spec/lib/gitlab/ci/config/node/global_spec.rb
@@ -51,11 +51,11 @@ describe Gitlab::Ci::Config::Node::Global do
expect(global.descendants.second.description)
.to eq 'Docker image that will be used to execute jobs.'
end
- end
- describe '#leaf?' do
- it 'is not leaf' do
- expect(global).not_to be_leaf
+ describe '#leaf?' do
+ it 'is not leaf' do
+ expect(global).not_to be_leaf
+ end
end
end
@@ -65,6 +65,12 @@ describe Gitlab::Ci::Config::Node::Global do
expect(global.before_script).to be nil
end
end
+
+ describe '#leaf?' do
+ it 'is leaf' do
+ expect(global).to be_leaf
+ end
+ end
end
context 'when processed' do