diff options
author | Nikita Afanasenko <nafanasenko@spbtv.com> | 2012-11-13 13:33:45 +0400 |
---|---|---|
committer | Nikita Afanasenko <nafanasenko@spbtv.com> | 2012-11-13 13:33:45 +0400 |
commit | ff2973a09a5b76473a62cc75e77851a5715d5a33 (patch) | |
tree | d5930c55d5aa6a964ff93c9631174eef95264ec5 /activerecord | |
parent | 8f3f50a3cca98a322083269562d446498825ad5f (diff) | |
download | rails-ff2973a09a5b76473a62cc75e77851a5715d5a33.tar.gz rails-ff2973a09a5b76473a62cc75e77851a5715d5a33.tar.bz2 rails-ff2973a09a5b76473a62cc75e77851a5715d5a33.zip |
Add a regression test on #8195
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 203e44857a..c02d8f7760 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -1442,6 +1442,13 @@ class BasicsTest < ActiveRecord::TestCase assert_match(/\/#{dev.id}$/, dev.cache_key) end + def test_cache_key_format_is_precise_enough + dev = Developer.first + key = dev.cache_key + dev.touch + assert_not_equal key, dev.cache_key + end + def test_uniq_delegates_to_scoped scope = stub Bird.stubs(:all).returns(mock(:uniq => scope)) |