Skip to content
This repository
Browse code

Merge pull request #1454 from sikachu/revert_failing_commit

Revert failing commit
  • Loading branch information...
commit 9f501230b3286b37d695e25a6aea653adaecc6a4 2 parents 4c0bed0 + 4b8b16b
Michael Koziarski authored June 01, 2011
6  activerecord/test/cases/attribute_methods_test.rb
@@ -125,10 +125,10 @@ def test_read_attributes_before_type_cast
125 125
     def test_read_attributes_before_type_cast_on_boolean
126 126
       bool = Boolean.create({ "value" => false })
127 127
       if RUBY_PLATFORM =~ /java/
128  
-        # JRuby will return the value before typecast as string
129  
-        assert_equal "0", bool.reload.attributes_before_type_cast["value"]
130  
-      else
  128
+        #JRuby will returns the value before typecast as integer
131 129
         assert_equal 0, bool.reload.attributes_before_type_cast["value"]
  130
+      else
  131
+        assert_equal "0", bool.reload.attributes_before_type_cast["value"]
132 132
       end
133 133
     end
134 134
   end

0 notes on commit 9f50123

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