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

reset default timezone and make test order independent

This commit is contained in:
Neeraj Singh 2013-07-28 16:08:01 +05:30
parent bffda1e65e
commit 5e68e42f62

View file

@ -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)