diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2019-01-14 16:15:09 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2019-01-17 16:08:32 -0500 |
commit | 0bef23e630f62e38f20b5ae1d1d5dbfb087050ea (patch) | |
tree | ccb2202e1396c921f4a3ca1ad3326f0ed30ebbb9 /activerecord/test | |
parent | 90d7842186591cae364fab3320b524e4d31a7d7d (diff) | |
download | rails-0bef23e630f62e38f20b5ae1d1d5dbfb087050ea.tar.gz rails-0bef23e630f62e38f20b5ae1d1d5dbfb087050ea.tar.bz2 rails-0bef23e630f62e38f20b5ae1d1d5dbfb087050ea.zip |
Remove ability to specify a timestamp name for `#cache_key`
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/integration_test.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/activerecord/test/cases/integration_test.rb b/activerecord/test/cases/integration_test.rb index 5687afbc71..4185e8d682 100644 --- a/activerecord/test/cases/integration_test.rb +++ b/activerecord/test/cases/integration_test.rb @@ -191,21 +191,6 @@ class IntegrationTest < ActiveRecord::TestCase end end - def test_named_timestamps_for_cache_key - assert_deprecated do - owner = owners(:blackbeard) - assert_equal "owners/#{owner.id}-#{owner.happy_at.utc.to_s(:usec)}", owner.cache_key(:updated_at, :happy_at) - end - end - - def test_cache_key_when_named_timestamp_is_nil - assert_deprecated do - owner = owners(:blackbeard) - owner.happy_at = nil - assert_equal "owners/#{owner.id}", owner.cache_key(:happy_at) - end - end - def test_cache_key_is_stable_with_versioning_on with_cache_versioning do developer = Developer.first |