提交 63173630 编写于 作者: M Michael Koziarski

Revert to previous mysql-specific assertion, and only run the test on mysql.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8913 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 aa088e05
......@@ -131,9 +131,11 @@ def test_read_attributes_before_type_cast
assert_equal category_attrs , category.attributes_before_type_cast
end
def test_read_attributes_before_type_cast_on_boolean
bool = Booleantest.new({ "value" => 0 })
assert_equal 0, bool.attributes_before_type_cast["value"]
if current_adapter?(:MysqlAdapter)
def test_read_attributes_before_type_cast_on_boolean
bool = Booleantest.create({ "value" => false })
assert_equal 0, bool.attributes_before_type_cast["value"]
end
end
def test_read_attributes_before_type_cast_on_datetime
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册