Skip to content

Commit

Permalink
Add a regression test on rails#8195
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Afanasenko committed Nov 13, 2012
1 parent 8f3f50a commit ff2973a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions activerecord/test/cases/base_test.rb
Expand Up @@ -1442,6 +1442,13 @@ def test_cache_key_format_for_existing_record_with_nil_updated_at
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))
Expand Down

0 comments on commit ff2973a

Please sign in to comment.