Skip to content
Browse files

make test order independent by resetting timezone

  • Loading branch information...
1 parent bffda1e commit d52052d02780a2b271393549431afbca2aa868d1 Neeraj Singh committed Jul 28, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/test/cases/integration_test.rb
View
2 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 d52052d

Please sign in to comment.
Something went wrong with that request. Please try again.