aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2013-07-28 14:58:19 +0530
committerNeeraj Singh <neerajdotname@gmail.com>2013-07-28 14:58:19 +0530
commitd52052d02780a2b271393549431afbca2aa868d1 (patch)
treeae13a5fe1bc9fdb16c93e523cccfed1c9a785841 /activerecord/test
parentbffda1e65e41c77c6c7fc8053feee6dddd0900ef (diff)
downloadrails-d52052d02780a2b271393549431afbca2aa868d1.tar.gz
rails-d52052d02780a2b271393549431afbca2aa868d1.tar.bz2
rails-d52052d02780a2b271393549431afbca2aa868d1.zip
make test order independent by resetting timezone
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/integration_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/integration_test.rb b/activerecord/test/cases/integration_test.rb
index b0a7cda2f3..f5daca2fa8 100644
--- a/activerecord/test/cases/integration_test.rb
+++ b/activerecord/test/cases/integration_test.rb
@@ -32,6 +32,8 @@ class IntegrationTest < ActiveRecord::TestCase
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