Skip to content

Commit

Permalink
Merge pull request #11635 from neerajdotname/make_test_order_independ…
Browse files Browse the repository at this point in the history
…ent_by_resetting_timezone

make test order independent by resetting timezone
  • Loading branch information
rafaelfranca committed Jul 28, 2013
2 parents c8461e0 + d52052d commit 4a76054
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions activerecord/test/cases/integration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a76054

Please sign in to comment.