Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

AttributeMethodTest test fix #jruby

  • Loading branch information...
commit 26d0f42f1827e791aa29297f459fa2678ebe6d36 1 parent 8a4013d
@vatrai vatrai authored jonleighton committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 activerecord/test/cases/attribute_methods_test.rb
View
6 activerecord/test/cases/attribute_methods_test.rb
@@ -126,7 +126,11 @@ def test_read_attributes_before_type_cast
if current_adapter?(:MysqlAdapter)
def test_read_attributes_before_type_cast_on_boolean
bool = Boolean.create({ "value" => false })
- assert_equal 0, bool.reload.attributes_before_type_cast["value"]
+ if RUBY_PLATFORM =~ /java/
+ assert_equal 0, bool.reload.attributes_before_type_cast["value"]
+ else
+ assert_equal "0", bool.reload.attributes_before_type_cast["value"]
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.