Add a regression test on #8195
This commit is contained in:
parent
8f3f50a3cc
commit
ff2973a09a
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user