提交 f064664d 编写于 作者: J Jon Leighton

Fix broken test. You know, the merge button will be the end of us...

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