diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-12-01 16:07:57 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-12-01 16:07:57 +0100 |
commit | cd2596f55e88fe659592612a793c4f4aa723c9be (patch) | |
tree | 8fb0cdff95de3aa15611e40eaf4293535e1be45b /activerecord/test | |
parent | 8cad52c20912e1ddfb07e7aea335c790afae5a19 (diff) | |
download | rails-cd2596f55e88fe659592612a793c4f4aa723c9be.tar.gz rails-cd2596f55e88fe659592612a793c4f4aa723c9be.tar.bz2 rails-cd2596f55e88fe659592612a793c4f4aa723c9be.zip |
tests, use public API to verify default parsing. #17863, #17856
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 |