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
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/concerns/reactive_caching_spec.rb')
-rw-r--r--spec/models/concerns/reactive_caching_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/concerns/reactive_caching_spec.rb b/spec/models/concerns/reactive_caching_spec.rb
index cb9bb676ede..039b9e574fe 100644
--- a/spec/models/concerns/reactive_caching_spec.rb
+++ b/spec/models/concerns/reactive_caching_spec.rb
@@ -281,7 +281,7 @@ RSpec.describe ReactiveCaching, :use_clean_rails_memory_store_caching do
end
it 'does not delete the value key' do
- expect(Rails.cache).to receive(:delete).with(cache_key).never
+ expect(Rails.cache).not_to receive(:delete).with(cache_key)
go!
end
@@ -338,7 +338,7 @@ RSpec.describe ReactiveCaching, :use_clean_rails_memory_store_caching do
context 'when lifetime is exceeded' do
it 'skips the calculation' do
- expect(instance).to receive(:calculate_reactive_cache).never
+ expect(instance).not_to receive(:calculate_reactive_cache)
go!
end
@@ -354,7 +354,7 @@ RSpec.describe ReactiveCaching, :use_clean_rails_memory_store_caching do
it 'skips the calculation' do
stub_exclusive_lease_taken(cache_key)
- expect(instance).to receive(:calculate_reactive_cache).never
+ expect(instance).not_to receive(:calculate_reactive_cache)
go!
end