mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
parent
8cad52c209
commit
cd2596f55e
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue