mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix broken test. You know, the merge button will be the end of us...
This commit is contained in:
parent
04593742c4
commit
f064664de7
1 changed files with 3 additions and 3 deletions
|
@ -135,10 +135,10 @@ 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
|
||||
# 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"]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue