diff options
-rw-r--r-- | activerecord/test/cases/collection_cache_key_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/collection_cache_key_test.rb b/activerecord/test/cases/collection_cache_key_test.rb index a794347889..724234d7f4 100644 --- a/activerecord/test/cases/collection_cache_key_test.rb +++ b/activerecord/test/cases/collection_cache_key_test.rb @@ -18,7 +18,7 @@ module ActiveRecord developers = Developer.where(name: "David") last_developer_timestamp = developers.order(updated_at: :desc).first.updated_at - assert_match /\Adevelopers\/query-(\h+)-(\d+)-(\d+)\Z/, developers.cache_key + assert_match(/\Adevelopers\/query-(\h+)-(\d+)-(\d+)\Z/, developers.cache_key) /\Adevelopers\/query-(\h+)-(\d+)-(\d+)\Z/ =~ developers.cache_key |