Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "Fix broken test. You know, the merge button will be the end o…

…f us..."

The fix was intentionaly for this branch, but was applied to another
branches by mistake. This should fix the CI.

This reverts commit 4c0bed0.
  • Loading branch information...
commit 4b8b16bf6b1775cc99f6a2d139fffa1455db6b0e 1 parent 4c0bed0
@sikachu sikachu authored
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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.