Permalink
Browse files

AttributeMethodTest test fix #jruby

  • Loading branch information...
vishnuatrai authored and jonleighton committed May 31, 2011
1 parent 8a4013d commit 26d0f42f1827e791aa29297f459fa2678ebe6d36
Showing with 5 additions and 1 deletion.
  1. +5 −1 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

0 comments on commit 26d0f42

Please sign in to comment.