aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/migration_test.rb5
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