Permalink
Browse files

Merge pull request #11635 from neerajdotname/make_test_order_independ…

…ent_by_resetting_timezone

make test order independent by resetting timezone
  • Loading branch information...
2 parents c8461e0 + d52052d commit 4a76054165c2dc637c04f6af4491c1bad337ca6d @rafaelfranca rafaelfranca committed Jul 28, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/test/cases/integration_test.rb
@@ -32,6 +32,8 @@ def test_cache_key_for_existing_record_is_not_timezone_dependent
est_key = Developer.first.cache_key
assert_equal utc_key, est_key
+ ensure
+ Time.zone = 'UTC'
end
def test_cache_key_format_for_existing_record_with_updated_at

0 comments on commit 4a76054

Please sign in to comment.