aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/cache/stores
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/cache/stores')
-rw-r--r--activesupport/test/cache/stores/memory_store_test.rb2
-rw-r--r--activesupport/test/cache/stores/redis_cache_store_test.rb8
2 files changed, 5 insertions, 5 deletions
diff --git a/activesupport/test/cache/stores/memory_store_test.rb b/activesupport/test/cache/stores/memory_store_test.rb
index 8fe8384fb0..340fb517cb 100644
--- a/activesupport/test/cache/stores/memory_store_test.rb
+++ b/activesupport/test/cache/stores/memory_store_test.rb
@@ -104,7 +104,7 @@ class MemoryStorePruningTest < ActiveSupport::TestCase
assert @cache.exist?(4)
assert @cache.exist?(3)
assert @cache.exist?(2)
- assert !@cache.exist?(1)
+ assert_not @cache.exist?(1)
end
def test_write_with_unless_exist
diff --git a/activesupport/test/cache/stores/redis_cache_store_test.rb b/activesupport/test/cache/stores/redis_cache_store_test.rb
index 3cae2bb11f..24c4c5c481 100644
--- a/activesupport/test/cache/stores/redis_cache_store_test.rb
+++ b/activesupport/test/cache/stores/redis_cache_store_test.rb
@@ -211,7 +211,7 @@ module ActiveSupport::Cache::RedisCacheStoreTests
@cache.write("foo", "bar")
@cache.write("fu", "baz")
@cache.delete_matched("foo*")
- assert !@cache.exist?("foo")
+ assert_not @cache.exist?("foo")
assert @cache.exist?("fu")
end
@@ -227,15 +227,15 @@ module ActiveSupport::Cache::RedisCacheStoreTests
@cache.write("foo", "bar")
@cache.write("fu", "baz")
@cache.clear
- assert !@cache.exist?("foo")
- assert !@cache.exist?("fu")
+ assert_not @cache.exist?("foo")
+ assert_not @cache.exist?("fu")
end
test "only clear namespace cache key" do
@cache.write("foo", "bar")
@cache.redis.set("fu", "baz")
@cache.clear
- assert !@cache.exist?("foo")
+ assert_not @cache.exist?("foo")
assert @cache.redis.exists("fu")
end
end