diff options
author | Paul Barry <mail@paulbarry.com> | 2010-06-11 23:03:47 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-29 21:17:08 +0200 |
commit | 0baf83fa18a0683d024a0e8f73f99c190a6ab0f1 (patch) | |
tree | 72214df060253ea272b6d62e749430ba9d801039 /activerecord | |
parent | ff22b9d451efc4251c28d11453f05fed95378af4 (diff) | |
download | rails-0baf83fa18a0683d024a0e8f73f99c190a6ab0f1.tar.gz rails-0baf83fa18a0683d024a0e8f73f99c190a6ab0f1.tar.bz2 rails-0baf83fa18a0683d024a0e8f73f99c190a6ab0f1.zip |
Replaced statement in comment with an assertion
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index a46d8b18a4..8870efac98 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -1629,8 +1629,9 @@ if ActiveRecord::Base.connection.supports_migrations? end connection.add_index :values, :value - # Just remove the index, it should not raise an exception - connection.remove_index :values, :column => :value + assert_nothing_raised do + connection.remove_index :values, :column => :value + end connection.drop_table :values rescue nil end |