Skip to content
Browse files

Replaced statement in comment with an assertion

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent ff22b9d commit 0baf83fa18a0683d024a0e8f73f99c190a6ab0f1 @pjb3 pjb3 committed with josevalim
Showing with 3 additions and 2 deletions.
  1. +3 −2 activerecord/test/cases/migration_test.rb
View
5 activerecord/test/cases/migration_test.rb
@@ -1629,8 +1629,9 @@ def test_drop_index_from_table_named_values
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

0 comments on commit 0baf83f

Please sign in to comment.
Something went wrong with that request. Please try again.