Permalink
Browse files

Adding comment

  • Loading branch information...
1 parent 230f788 commit 7d447c4726e7b5fb1f8eddcd88bcd2dd70ffed79 @arunagw arunagw committed with jonleighton Jun 1, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 activerecord/test/cases/attribute_methods_test.rb
@@ -135,6 +135,7 @@ def test_read_attributes_before_type_cast
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"]

0 comments on commit 7d447c4

Please sign in to comment.