1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Improve test name related to cache timestamp format [ci skip]

Conflicts:
	activerecord/test/cases/base_test.rb
This commit is contained in:
Carlos Antonio da Silva 2012-12-11 21:52:21 -02:00
parent a565f80bcb
commit 5353795c0d

View file

@ -1444,7 +1444,7 @@ class BasicsTest < ActiveRecord::TestCase
assert_equal "developers/#{dev.id}-#{dev.updated_at.utc.to_s(:nsec)}", dev.cache_key assert_equal "developers/#{dev.id}-#{dev.updated_at.utc.to_s(:nsec)}", dev.cache_key
end end
def test_cache_key_format_for_existing_record_with_updated_at_and_cache_timestamp_format_set def test_cache_key_format_for_existing_record_with_updated_at_and_custom_cache_timestamp_format
dev = CachedDeveloper.first dev = CachedDeveloper.first
assert_equal "cached_developers/#{dev.id}-#{dev.updated_at.utc.to_s(:number)}", dev.cache_key assert_equal "cached_developers/#{dev.id}-#{dev.updated_at.utc.to_s(:number)}", dev.cache_key
end end