summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/ci/config
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-03-03 17:06:43 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-03-03 17:06:43 +0800
commitaa5b9b16142f7e8ce33b9487722be59ebb1d96e7 (patch)
treed3c4ae0a1a16f5d8718cae01ef55ec0477f526c9 /spec/lib/gitlab/ci/config
parenta00520b15dc7745ba7591236067e167f79c906ef (diff)
downloadgitlab-ce-aa5b9b16142f7e8ce33b9487722be59ebb1d96e7.tar.gz
Only test against the default key, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9666/diffs#note_24608359
Diffstat (limited to 'spec/lib/gitlab/ci/config')
-rw-r--r--spec/lib/gitlab/ci/config/entry/cache_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/lib/gitlab/ci/config/entry/cache_spec.rb b/spec/lib/gitlab/ci/config/entry/cache_spec.rb
index 37abbc8a498..2ed120f356a 100644
--- a/spec/lib/gitlab/ci/config/entry/cache_spec.rb
+++ b/spec/lib/gitlab/ci/config/entry/cache_spec.rb
@@ -33,9 +33,8 @@ describe Gitlab::Ci::Config::Entry::Cache do
describe '#value' do
it 'sets key with the default' do
- value = config.merge(key: Gitlab::Ci::Config::Entry::Key.default)
-
- expect(entry.value).to eq(value)
+ expect(entry.value[:key])
+ .to eq(Gitlab::Ci::Config::Entry::Key.default)
end
end
end