diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2015-10-20 14:20:32 -0600 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-10-20 14:20:32 -0600 |
commit | 8b64aba17bbb7bc6af6f0aafb874904147f373bf (patch) | |
tree | 046a807b6ad660e25424d8dbf608e834e86be6db /activesupport/test | |
parent | cbcdecd2c55fca9613722779231de2d8dd67ad02 (diff) | |
parent | 86d2924a115c2604e4facdf285a7b764938fae0f (diff) | |
download | rails-8b64aba17bbb7bc6af6f0aafb874904147f373bf.tar.gz rails-8b64aba17bbb7bc6af6f0aafb874904147f373bf.tar.bz2 rails-8b64aba17bbb7bc6af6f0aafb874904147f373bf.zip |
Merge pull request #21883 from tarzan/cache-key-too-precise
Fix precision on cache_key
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/time_ext_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/time_ext_test.rb b/activesupport/test/core_ext/time_ext_test.rb index b14c04fba6..2d0fb70a6b 100644 --- a/activesupport/test/core_ext/time_ext_test.rb +++ b/activesupport/test/core_ext/time_ext_test.rb @@ -534,6 +534,7 @@ class TimeExtCalculationsTest < ActiveSupport::TestCase assert_equal "17:44", time.to_s(:time) assert_equal "20050221174430", time.to_s(:number) assert_equal "20050221174430123456789", time.to_s(:nsec) + assert_equal "20050221174430123456", time.to_s(:usec) assert_equal "February 21, 2005 17:44", time.to_s(:long) assert_equal "February 21st, 2005 17:44", time.to_s(:long_ordinal) with_env_tz "UTC" do |