提交 7d447c47 编写于 作者: A Arun Agrawal 提交者: Jon Leighton

Adding comment

上级 230f7887
......@@ -135,6 +135,7 @@ def test_read_attributes_before_type_cast
def test_read_attributes_before_type_cast_on_boolean
bool = Boolean.create({ "value" => false })
if RUBY_PLATFORM =~ /java/
#JRuby will returns the value before typecast as integer
assert_equal 0, bool.reload.attributes_before_type_cast["value"]
else
assert_equal "0", bool.reload.attributes_before_type_cast["value"]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册