diff options
Diffstat (limited to 'spec/lib/gitlab/markdown_cache/redis')
-rw-r--r-- | spec/lib/gitlab/markdown_cache/redis/extension_spec.rb | 3 | ||||
-rw-r--r-- | spec/lib/gitlab/markdown_cache/redis/store_spec.rb | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/spec/lib/gitlab/markdown_cache/redis/extension_spec.rb b/spec/lib/gitlab/markdown_cache/redis/extension_spec.rb index 3dcb9f160ba..b5d458f15fc 100644 --- a/spec/lib/gitlab/markdown_cache/redis/extension_spec.rb +++ b/spec/lib/gitlab/markdown_cache/redis/extension_spec.rb @@ -7,7 +7,8 @@ RSpec.describe Gitlab::MarkdownCache::Redis::Extension, :clean_gitlab_redis_cach include CacheMarkdownField def initialize(title: nil, description: nil) - @title, @description = title, description + @title = title + @description = description end attr_reader :title, :description diff --git a/spec/lib/gitlab/markdown_cache/redis/store_spec.rb b/spec/lib/gitlab/markdown_cache/redis/store_spec.rb index bf40af8e62e..07a87b245c2 100644 --- a/spec/lib/gitlab/markdown_cache/redis/store_spec.rb +++ b/spec/lib/gitlab/markdown_cache/redis/store_spec.rb @@ -40,7 +40,7 @@ RSpec.describe Gitlab::MarkdownCache::Redis::Store, :clean_gitlab_redis_cache do describe '.bulk_read' do before do - store.save(field_1_html: "hello", field_2_html: "world", cached_markdown_version: 1) + store.save(field_1_html: "hello", field_2_html: "world", cached_markdown_version: 1) # rubocop:disable Rails/SaveBang end it 'returns a hash of values from store' do @@ -59,7 +59,7 @@ RSpec.describe Gitlab::MarkdownCache::Redis::Store, :clean_gitlab_redis_cache do it 'stores updates to html fields and version' do values_to_store = { field_1_html: "hello", field_2_html: "world", cached_markdown_version: 1 } - store.save(values_to_store) + store.save(values_to_store) # rubocop:disable Rails/SaveBang expect(read_values) .to eq(field_1_html: "hello", field_2_html: "world", cached_markdown_version: "1") |