Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make test order independent by resetting timezone

  • Loading branch information...
commit d52052d02780a2b271393549431afbca2aa868d1 1 parent bffda1e
@neerajdotname neerajdotname authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.