aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/invertible_migration_test.rb
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2014-08-29 10:33:57 +0900
committerAkira Matsuda <ronnie@dio.jp>2014-08-29 10:34:26 +0900
commit9bb495e6ae4de6d8c22f5e0cf81fbd86d95362e2 (patch)
tree4d71d24fc92f18ca128ebf54204f26dcb5b52511 /activerecord/test/cases/invertible_migration_test.rb
parent9c76381356b2671009abf9523b955c6a847aa125 (diff)
downloadrails-9bb495e6ae4de6d8c22f5e0cf81fbd86d95362e2.tar.gz
rails-9bb495e6ae4de6d8c22f5e0cf81fbd86d95362e2.tar.bz2
rails-9bb495e6ae4de6d8c22f5e0cf81fbd86d95362e2.zip
Silence another test that runs migrations
Diffstat (limited to 'activerecord/test/cases/invertible_migration_test.rb')
-rw-r--r--activerecord/test/cases/invertible_migration_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/invertible_migration_test.rb b/activerecord/test/cases/invertible_migration_test.rb
index 285172d33e..8144f3e5c5 100644
--- a/activerecord/test/cases/invertible_migration_test.rb
+++ b/activerecord/test/cases/invertible_migration_test.rb
@@ -122,12 +122,17 @@ module ActiveRecord
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