1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

make test order independent by resetting timezone

This commit is contained in:
Neeraj Singh 2013-07-28 14:58:19 +05:30
parent bffda1e65e
commit d52052d027

View file

@ -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