mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Adding comment
This commit is contained in:
committed by
Jon Leighton
parent
230f788759
commit
7d447c4726
@@ -135,6 +135,7 @@ class AttributeMethodsTest < ActiveRecord::TestCase
|
||||
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"]
|
||||
|
||||
Reference in New Issue
Block a user