diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-03-03 17:06:43 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-03-03 17:06:43 +0800 |
commit | aa5b9b16142f7e8ce33b9487722be59ebb1d96e7 (patch) | |
tree | d3c4ae0a1a16f5d8718cae01ef55ec0477f526c9 | |
parent | a00520b15dc7745ba7591236067e167f79c906ef (diff) | |
download | gitlab-ce-aa5b9b16142f7e8ce33b9487722be59ebb1d96e7.tar.gz |
Only test against the default key, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9666/diffs#note_24608359
-rw-r--r-- | spec/lib/gitlab/ci/config/entry/cache_spec.rb | 5 |
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 |