mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #35271 from gmcgibbon/fix_time_attribute_test_failures
Reset column info after making Topic tz-aware
This commit is contained in:
commit
16a8072e2d
1 changed files with 4 additions and 0 deletions
|
@ -711,6 +711,10 @@ class AttributeMethodsTest < ActiveRecord::TestCase
|
||||||
record.written_on = "Jan 01 00:00:00 2014"
|
record.written_on = "Jan 01 00:00:00 2014"
|
||||||
assert_equal record, YAML.load(YAML.dump(record))
|
assert_equal record, YAML.load(YAML.dump(record))
|
||||||
end
|
end
|
||||||
|
ensure
|
||||||
|
# NOTE: Reset column info because global topics
|
||||||
|
# don't have tz-aware attributes by default.
|
||||||
|
Topic.reset_column_information
|
||||||
end
|
end
|
||||||
|
|
||||||
test "setting a time zone-aware time in the current time zone" do
|
test "setting a time zone-aware time in the current time zone" do
|
||||||
|
|
Loading…
Reference in a new issue