Permalink
Browse files

Merge pull request #11637 from neerajdotname/make_test_not_depend_on_…

…order

reset default timezone and make test order independent
  • Loading branch information...
2 parents f625d32 + 5e68e42 commit c8461e0d43c972b75ab900a1ab8addcad892dde6 @rafaelfranca rafaelfranca committed Jul 28, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 activerecord/test/cases/multiparameter_attributes_test.rb
@@ -11,6 +11,10 @@ def setup
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)

1 comment on commit c8461e0

Please sign in to comment.