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:
parent
bffda1e65e
commit
d52052d027
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ class IntegrationTest < ActiveRecord::TestCase
|
||||||
est_key = Developer.first.cache_key
|
est_key = Developer.first.cache_key
|
||||||
|
|
||||||
assert_equal utc_key, est_key
|
assert_equal utc_key, est_key
|
||||||
|
ensure
|
||||||
|
Time.zone = 'UTC'
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_cache_key_format_for_existing_record_with_updated_at
|
def test_cache_key_format_for_existing_record_with_updated_at
|
||||||
|
|
Loading…
Reference in a new issue