diff options
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/defaults_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/cases/defaults_test.rb b/activerecord/test/cases/defaults_test.rb index 3e6032e266..d035892bb9 100644 --- a/activerecord/test/cases/defaults_test.rb +++ b/activerecord/test/cases/defaults_test.rb @@ -38,7 +38,8 @@ class DefaultTest < ActiveRecord::TestCase end def test_default_negative_integer - assert_equal "-1", Default.columns_hash['negative_integer'].default + assert_equal -1, Default.new.negative_integer + assert_equal "-1", Default.new.negative_integer_before_type_cast end end end |