Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-03-02 19:30:22 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-03-02 19:30:22 +0300
commitdc3a41f405f2ebe1b84560e3838d3f0a3a4b1be7 (patch)
tree6e00ec699ae1c52719532a85061354ea3d0242bd /lib/gitlab/ci/config
parent127520430ce63860247d23ea1582c778fda1c35f (diff)
Fix tests for added default cache key
Diffstat (limited to 'lib/gitlab/ci/config')
-rw-r--r--lib/gitlab/ci/config/entry/node.rb14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/gitlab/ci/config/entry/node.rb b/lib/gitlab/ci/config/entry/node.rb
index 5c745babcb9..1cacb9357f2 100644
--- a/lib/gitlab/ci/config/entry/node.rb
+++ b/lib/gitlab/ci/config/entry/node.rb
@@ -76,8 +76,18 @@ module Gitlab
end
def inspect
- val = if leaf? then config else descendants end
- unspecified = if specified? then '' else '(unspecified) ' end
+ val = if leaf?
+ config
+ else
+ descendants
+ end
+
+ unspecified = if specified?
+ ''
+ else
+ '(unspecified) '
+ end
+
"#<#{self.class.name} #{unspecified}{#{key}: #{val.inspect}}>"
end