Skip to content

Commit

Permalink
Silence another test that runs migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Aug 29, 2014
1 parent 9c76381 commit 9bb495e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions activerecord/test/cases/invertible_migration_test.rb
Expand Up @@ -122,12 +122,17 @@ def change
end
end

setup do
@verbose_was, ActiveRecord::Migration.verbose = ActiveRecord::Migration.verbose, false
end

teardown do
%w[horses new_horses].each do |table|
if ActiveRecord::Base.connection.table_exists?(table)
ActiveRecord::Base.connection.drop_table(table)
end
end
ActiveRecord::Migration.verbose = @verbose_was
end

def test_no_reverse
Expand Down

0 comments on commit 9bb495e

Please sign in to comment.