Skip to content

Commit

Permalink
Merge pull request rails#1454 from sikachu/revert_failing_commit
Browse files Browse the repository at this point in the history
Revert failing commit
  • Loading branch information
NZKoz committed Jun 2, 2011
2 parents 4c0bed0 + 4b8b16b commit 9f50123
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activerecord/test/cases/attribute_methods_test.rb
Expand Up @@ -125,10 +125,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 return the value before typecast as string
assert_equal "0", bool.reload.attributes_before_type_cast["value"]
else
#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"]
end
end
end
Expand Down

0 comments on commit 9f50123

Please sign in to comment.