diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2013-07-28 16:08:01 +0530 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2013-07-28 16:08:01 +0530 |
commit | 5e68e42f6209a8f80cbfb223f8d487e447eda084 (patch) | |
tree | beb809939c9392f9bf7d7e912a8d541cfa6d9a16 /activerecord | |
parent | bffda1e65e41c77c6c7fc8053feee6dddd0900ef (diff) | |
download | rails-5e68e42f6209a8f80cbfb223f8d487e447eda084.tar.gz rails-5e68e42f6209a8f80cbfb223f8d487e447eda084.tar.bz2 rails-5e68e42f6209a8f80cbfb223f8d487e447eda084.zip |
reset default timezone and make test order independent
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/multiparameter_attributes_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/multiparameter_attributes_test.rb b/activerecord/test/cases/multiparameter_attributes_test.rb index 1209f5460f..ce21760645 100644 --- a/activerecord/test/cases/multiparameter_attributes_test.rb +++ b/activerecord/test/cases/multiparameter_attributes_test.rb @@ -11,6 +11,10 @@ class MultiParameterAttributeTest < ActiveRecord::TestCase Time.zone = nil end + def teardown + ActiveRecord::Base.default_timezone = :utc + end + def test_multiparameter_attributes_on_date attributes = { "last_read(1i)" => "2004", "last_read(2i)" => "6", "last_read(3i)" => "24" } topic = Topic.find(1) |