diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-04-19 17:04:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-19 17:04:01 -0400 |
commit | d26f48a57453844ad81503fe71ba24a1d2a1a1b7 (patch) | |
tree | 935f6521b0e86833a6d87087ea39c4a75413213a /activesupport/test/cache/behaviors/cache_store_behavior.rb | |
parent | cddcc1dac4a0cb49160eb7d929016ede6c495da2 (diff) | |
parent | 1a42d87e3b7d90f2a5cb0d8bc6c54a27fbf022a5 (diff) | |
download | rails-d26f48a57453844ad81503fe71ba24a1d2a1a1b7.tar.gz rails-d26f48a57453844ad81503fe71ba24a1d2a1a1b7.tar.bz2 rails-d26f48a57453844ad81503fe71ba24a1d2a1a1b7.zip |
Merge pull request #32648 from bogdanvlviv/improve-pattern-filenames-to-catch-more-style-offences
Allow rubocop check more files
Diffstat (limited to 'activesupport/test/cache/behaviors/cache_store_behavior.rb')
-rw-r--r-- | activesupport/test/cache/behaviors/cache_store_behavior.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/cache/behaviors/cache_store_behavior.rb b/activesupport/test/cache/behaviors/cache_store_behavior.rb index f6763d195a..f9153ffe2a 100644 --- a/activesupport/test/cache/behaviors/cache_store_behavior.rb +++ b/activesupport/test/cache/behaviors/cache_store_behavior.rb @@ -33,7 +33,7 @@ module CacheStoreBehavior cache_miss = false assert_equal 3, @cache.fetch("foo") { |key| cache_miss = true; key.length } - assert !cache_miss + assert_not cache_miss end def test_fetch_with_forced_cache_miss @@ -308,7 +308,7 @@ module CacheStoreBehavior @cache.write("foo", "bar") assert @cache.exist?("foo") assert @cache.delete("foo") - assert !@cache.exist?("foo") + assert_not @cache.exist?("foo") end def test_original_store_objects_should_not_be_immutable |