Permalink
Browse files

Ensure that a column added in a test is being removed after all

  • Loading branch information...
1 parent 49245f3 commit a99b81e44fac8fd60e56420d0505768c2a318443 @amatsuda amatsuda committed Nov 12, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 activerecord/test/cases/transactions_test.rb
@@ -485,6 +485,13 @@ def test_sqlite_add_column_in_transaction
raise ActiveRecord::Rollback
end
end
+ ensure
+ begin
+ Topic.connection.remove_column('topics', 'stuff')
+ rescue
+ ensure
+ Topic.reset_column_information
+ end
end
def test_transactions_state_from_rollback

0 comments on commit a99b81e

Please sign in to comment.