Permalink
Browse files

Merge pull request #11633 from neerajdotname/fix_rder_dependent_test

fix order dependent test
  • Loading branch information...
2 parents 6b7424c + 09beb9c commit b6c0639825a2ed723a00c32acec87bfeffc1b9ed @guilleiguaran guilleiguaran committed Jul 28, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 activerecord/test/cases/transactions_test.rb
@@ -453,6 +453,11 @@ def test_sqlite_add_column_in_transaction
raise ActiveRecord::Rollback
end
end
+
+ ensure
+ Topic.reset_column_information # reset the column information to get correct reading
+ Topic.connection.remove_column('topics', 'stuff') if Topic.column_names.include?('stuff')
+ Topic.reset_column_information # reset the column information again for other tests
end
def test_transactions_state_from_rollback

0 comments on commit b6c0639

Please sign in to comment.