diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-01-12 08:50:35 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-01-12 08:50:35 +0000 |
commit | a66ad97dacdf8eed775b35fdfd0e569323f43242 (patch) | |
tree | fcb90f31b0192bc92485238bd26e51293fe23237 | |
parent | dbd7b5e11177c46c8688b54d46be8fcb5b8a4317 (diff) | |
download | rails-a66ad97dacdf8eed775b35fdfd0e569323f43242.tar.gz rails-a66ad97dacdf8eed775b35fdfd0e569323f43242.tar.bz2 rails-a66ad97dacdf8eed775b35fdfd0e569323f43242.zip |
Oops. References #6156.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5902 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | activerecord/test/defaults_test.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/activerecord/test/defaults_test.rb b/activerecord/test/defaults_test.rb index 924a4fbf49..3043871f77 100644 --- a/activerecord/test/defaults_test.rb +++ b/activerecord/test/defaults_test.rb @@ -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 |