diff options
author | Ryan Glover <ersatzryan@gmail.com> | 2013-11-07 10:35:49 -0500 |
---|---|---|
committer | Ryan Glover <ersatzryan@gmail.com> | 2013-11-07 10:43:51 -0500 |
commit | a64d4e85e311edfcea79c777c6a184dc408c2f57 (patch) | |
tree | 5247af7249feb18faff8cbe04c090fca910848b6 /activesupport/test/message_encryptor_test.rb | |
parent | 0fca7d67d4b748584e589bea69db1988b3138cb0 (diff) | |
download | rails-a64d4e85e311edfcea79c777c6a184dc408c2f57.tar.gz rails-a64d4e85e311edfcea79c777c6a184dc408c2f57.tar.bz2 rails-a64d4e85e311edfcea79c777c6a184dc408c2f57.zip |
Standardize all JSON encoded times to use 3 decimal fractional seconds
Diffstat (limited to 'activesupport/test/message_encryptor_test.rb')
-rw-r--r-- | activesupport/test/message_encryptor_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/message_encryptor_test.rb b/activesupport/test/message_encryptor_test.rb index 509c453b5c..203156baa1 100644 --- a/activesupport/test/message_encryptor_test.rb +++ b/activesupport/test/message_encryptor_test.rb @@ -60,7 +60,7 @@ class MessageEncryptorTest < ActiveSupport::TestCase ActiveSupport.use_standard_json_time_format = true encryptor = ActiveSupport::MessageEncryptor.new(SecureRandom.hex(64), SecureRandom.hex(64), :serializer => JSONSerializer.new) message = encryptor.encrypt_and_sign({ :foo => 123, 'bar' => Time.utc(2010) }) - exp = { "foo" => 123, "bar" => "2010-01-01T00:00:00Z" } + exp = { "foo" => 123, "bar" => "2010-01-01T00:00:00.000Z" } assert_equal exp, encryptor.decrypt_and_verify(message) ensure ActiveSupport.use_standard_json_time_format = prev |