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
path: root/spec/lib
diff options
context:
space:
mode:
authorPatrick Bajao <ebajao@gitlab.com>2019-06-05 15:06:37 +0300
committerPatrick Bajao <ebajao@gitlab.com>2019-06-05 15:06:41 +0300
commitde21320db21e63db59cbba870ac23624a298214d (patch)
tree6521d0d8a0708524dba22dca217050a489150588 /spec/lib
parent56d52340da0f8f15179b83f1206544a2590c22ff (diff)
Remove requirement for id for #markdown_cache_key
It's not needed anymore as we require `#cache_key` instead.
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/markdown_cache/redis/extension_spec.rb4
-rw-r--r--spec/lib/gitlab/markdown_cache/redis/store_spec.rb4
2 files changed, 0 insertions, 8 deletions
diff --git a/spec/lib/gitlab/markdown_cache/redis/extension_spec.rb b/spec/lib/gitlab/markdown_cache/redis/extension_spec.rb
index 24cfb399cc3..b6a781de426 100644
--- a/spec/lib/gitlab/markdown_cache/redis/extension_spec.rb
+++ b/spec/lib/gitlab/markdown_cache/redis/extension_spec.rb
@@ -15,10 +15,6 @@ describe Gitlab::MarkdownCache::Redis::Extension, :clean_gitlab_redis_cache do
cache_markdown_field :title, pipeline: :single_line
cache_markdown_field :description
- def id
- "test-markdown-cache"
- end
-
def cache_key
"cache-key"
end
diff --git a/spec/lib/gitlab/markdown_cache/redis/store_spec.rb b/spec/lib/gitlab/markdown_cache/redis/store_spec.rb
index e7701cf1306..95c68e7d491 100644
--- a/spec/lib/gitlab/markdown_cache/redis/store_spec.rb
+++ b/spec/lib/gitlab/markdown_cache/redis/store_spec.rb
@@ -13,10 +13,6 @@ describe Gitlab::MarkdownCache::Redis::Store, :clean_gitlab_redis_cache do
attr_accessor :field_1, :field_2, :field_1_html, :field_2_html, :cached_markdown_version
- def id
- 'test-redisbacked-store'
- end
-
def cache_key
"cache-key"
end