aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord')
-rwxr-xr-xactiverecord/test/cases/base_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb
index 46982712ca..6cb120f28e 100755
--- a/activerecord/test/cases/base_test.rb
+++ b/activerecord/test/cases/base_test.rb
@@ -132,8 +132,8 @@ class BasicsTest < ActiveRecord::TestCase
end
def test_read_attributes_before_type_cast_on_boolean
- bool = Booleantest.create({ "value" => false })
- assert_equal 0 , bool.attributes_before_type_cast["value"]
+ bool = Booleantest.new({ "value" => 0 })
+ assert_equal 0, bool.attributes_before_type_cast["value"]
end
def test_read_attributes_before_type_cast_on_datetime