Permalink
Browse files

Adding comment

  • Loading branch information...
1 parent 26d0f42 commit 7f34d5bc0b43c02628d1a981c99fb9d4dae1b7db @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
@@ -127,6 +127,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 7f34d5b

Please sign in to comment.