diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-06-14 08:06:51 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-01-15 08:04:43 -0700 |
commit | 5cd3bbbb832b58d2a0092f527d83312df4271de7 (patch) | |
tree | bdecb3dcb2569777aefcf73438bdd35617cd3462 /activerecord/test/cases/multiparameter_attributes_test.rb | |
parent | d8e710410ea300ec4626250c0b35946cb52bc38c (diff) | |
download | rails-5cd3bbbb832b58d2a0092f527d83312df4271de7.tar.gz rails-5cd3bbbb832b58d2a0092f527d83312df4271de7.tar.bz2 rails-5cd3bbbb832b58d2a0092f527d83312df4271de7.zip |
Time columns should support time zone aware attributes
The types that are affected by `time_zone_aware_attributes` (which is on
by default) have been made configurable, in case this is a breaking
change for existing applications.
Diffstat (limited to 'activerecord/test/cases/multiparameter_attributes_test.rb')
-rw-r--r-- | activerecord/test/cases/multiparameter_attributes_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/multiparameter_attributes_test.rb b/activerecord/test/cases/multiparameter_attributes_test.rb index 14d4ef457d..4aaf6f8b5f 100644 --- a/activerecord/test/cases/multiparameter_attributes_test.rb +++ b/activerecord/test/cases/multiparameter_attributes_test.rb @@ -250,8 +250,8 @@ class MultiParameterAttributeTest < ActiveRecord::TestCase } topic = Topic.find(1) topic.attributes = attributes - assert_equal Time.utc(2000, 1, 1, 16, 24, 0), topic.bonus_time - assert topic.bonus_time.utc? + assert_equal Time.zone.local(2000, 1, 1, 16, 24, 0), topic.bonus_time + assert_not topic.bonus_time.utc? end end end |