summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/cache
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-07-18 18:04:20 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-07-18 18:04:20 +0800
commit3922b803290ecccdb232c2c150ee249ba2b57c97 (patch)
treea05eb6d68525dcafb81be08c266e7b8c68dc9de1 /spec/lib/gitlab/cache
parentffc5b29bd0f02676bdc05ec6185d115d6705cd8f (diff)
downloadgitlab-ce-3922b803290ecccdb232c2c150ee249ba2b57c97.tar.gz
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.rb10
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