Permalink
Browse files

AttributeMethodTest test fix #jruby

  • Loading branch information...
vishnuatrai committed May 31, 2011
1 parent 56f13a3 commit bd64cc99aa7e2a70cb7ed3d50ca881b57c76ad58
Showing with 5 additions and 1 deletion.
  1. +5 −1 activerecord/test/cases/attribute_methods_test.rb
@@ -124,7 +124,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 bd64cc9

Please sign in to comment.