diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-29 21:35:30 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-10 17:05:00 -0300 |
commit | 660882bda42ffacc602758631c2a2e6ba09c1ee1 (patch) | |
tree | 92d871deb3b253e1b5030460e41ea59da46511af /activerecord/test/cases/cache_key_test.rb | |
parent | 09a8b146ef9e038d6036a21fb4f80e15f9ee969a (diff) | |
download | rails-660882bda42ffacc602758631c2a2e6ba09c1ee1.tar.gz rails-660882bda42ffacc602758631c2a2e6ba09c1ee1.tar.bz2 rails-660882bda42ffacc602758631c2a2e6ba09c1ee1.zip |
Make sure the tests pass in the case closer to described in #8195
Diffstat (limited to 'activerecord/test/cases/cache_key_test.rb')
-rw-r--r-- | activerecord/test/cases/cache_key_test.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/activerecord/test/cases/cache_key_test.rb b/activerecord/test/cases/cache_key_test.rb deleted file mode 100644 index e52bbd3d30..0000000000 --- a/activerecord/test/cases/cache_key_test.rb +++ /dev/null @@ -1,18 +0,0 @@ -require "cases/helper" -require "models/invoice" -require "models/line_item" - -class CacheKeyTest < ActiveRecord::TestCase - def setup - @invoice = Invoice.create - LineItem.create(invoice: @invoice) - @invoice.reload - end - - def test_cache_key_changes_when_child_touched - key = @invoice.cache_key - @invoice.line_items[0].touch - @invoice.reload - assert_not_equal key, @invoice.cache_key - end -end |