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:
parent
bffda1e65e
commit
5e68e42f62
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue