提交 2806203f 编写于 作者: S Sean Griffin 提交者: GitHub

Merge pull request #25372 from kamipo/remove_assert_date_from_db

Remove unnecessary `assert_date_from_db`
......@@ -11,7 +11,7 @@ def test_multiparameter_attributes_on_date
topic.attributes = attributes
# note that extra #to_date call allows test to pass for Oracle, which
# treats dates/times the same
assert_date_from_db Date.new(2004, 6, 24), topic.last_read.to_date
assert_equal Date.new(2004, 6, 24), topic.last_read.to_date
end
def test_multiparameter_attributes_on_date_with_empty_year
......
......@@ -12,10 +12,6 @@ def teardown
SQLCounter.clear_log
end
def assert_date_from_db(expected, actual, message = nil)
assert_equal expected.to_s, actual.to_s, message
end
def capture_sql
SQLCounter.clear_log
yield
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册