提交 08e78ad4 编写于 作者: G Gannon McGibbon

Reset column info after making Topic tz-aware

In AttributeMethodsTest, we make the global Topic class time zone-aware
which changes instance date time attribute casting behaviour. We need to
reset column info after the test because future tests don't expect Topic
date time columns to be time zone-aware.
上级 ccaa6199
......@@ -711,6 +711,10 @@ def topic.title() "b" end
record.written_on = "Jan 01 00:00:00 2014"
assert_equal record, YAML.load(YAML.dump(record))
end
ensure
# NOTE: Reset column info because global topics
# don't have tz-aware attributes by default.
Topic.reset_column_information
end
test "setting a time zone-aware time in the current time zone" do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册