Skip to content
Browse files

Fix broken test. You know, the merge button will be the end of us...

  • Loading branch information...
1 parent 0459374 commit f064664de72a34d24568eadf7340f41876df4b20 @jonleighton jonleighton committed Jun 1, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/test/cases/attribute_methods_test.rb
View
6 activerecord/test/cases/attribute_methods_test.rb
@@ -135,10 +135,10 @@ 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
+ # JRuby will return the value before typecast as string
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 f064664

Please sign in to comment.
Something went wrong with that request. Please try again.