1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

tests, use public API to verify default parsing. #17863, #17856

This commit is contained in:
Yves Senn 2014-12-01 16:07:57 +01:00
parent 8cad52c209
commit cd2596f55e

View file

@ -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