mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Oops. References #6156.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5902 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
dbd7b5e111
commit
a66ad97dac
1 changed files with 1 additions and 5 deletions
|
@ -34,11 +34,7 @@ class DefaultTest < Test::Unit::TestCase
|
|||
assert_equal nil, klass.columns_hash['omit'].default
|
||||
assert !klass.columns_hash['omit'].null
|
||||
|
||||
assert_nothing_raised do
|
||||
instance = klass.create!
|
||||
assert_equal 0, instance.zero
|
||||
assert_nil instance.omit
|
||||
end
|
||||
assert_raise(ActiveRecord::StatementInvalid) { klass.create! }
|
||||
ensure
|
||||
klass.connection.drop_table(klass.table_name) rescue nil
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue