diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-07-18 13:04:20 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-07-18 13:04:20 +0300 |
commit | 3922b803290ecccdb232c2c150ee249ba2b57c97 (patch) | |
tree | a05eb6d68525dcafb81be08c266e7b8c68dc9de1 /spec/lib/gitlab/cache | |
parent | ffc5b29bd0f02676bdc05ec6185d115d6705cd8f (diff) |
Rename the methods to make it fit with current name
Diffstat (limited to 'spec/lib/gitlab/cache')
-rw-r--r-- | spec/lib/gitlab/cache/request_cache_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/lib/gitlab/cache/request_cache_spec.rb b/spec/lib/gitlab/cache/request_cache_spec.rb index 62f914cf121..654686dc5d6 100644 --- a/spec/lib/gitlab/cache/request_cache_spec.rb +++ b/spec/lib/gitlab/cache/request_cache_spec.rb @@ -18,18 +18,18 @@ describe Gitlab::Cache::RequestCache, :request_store do self.extra = nil end - request_store_wrap def compute(arg) + request_cache def compute(arg) result << arg end - request_store_wrap def repute(arg) + request_cache def repute(arg) result << arg end def dispute(arg) result << arg end - request_store_wrap(:dispute) { extra } + request_cache(:dispute) { extra } end end @@ -80,9 +80,9 @@ describe Gitlab::Cache::RequestCache, :request_store do expect(algorithm.result).to eq(result) end - context 'when request_store_wrap_key is provided' do + context 'when request_cache_key is provided' do before do - klass.request_store_wrap_key do + klass.request_cache_key do [id, name] end end |