aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migrator_test.rb
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2014-08-29 10:36:27 +0900
committerAkira Matsuda <ronnie@dio.jp>2014-08-29 10:58:55 +0900
commit0cc22f4b86e547880fb8f444b15f19bdb38c7bc9 (patch)
tree29905647f6fd2483cd1341e2d6dae7c38187fe33 /activerecord/test/cases/migrator_test.rb
parent17b837b3f10d52c5a39ef2f49930a1ffb1b66872 (diff)
downloadrails-0cc22f4b86e547880fb8f444b15f19bdb38c7bc9.tar.gz
rails-0cc22f4b86e547880fb8f444b15f19bdb38c7bc9.tar.bz2
rails-0cc22f4b86e547880fb8f444b15f19bdb38c7bc9.zip
Reset ActiveRecord::Migration.message_count counter before start testing
Diffstat (limited to 'activerecord/test/cases/migrator_test.rb')
-rw-r--r--activerecord/test/cases/migrator_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/migrator_test.rb b/activerecord/test/cases/migrator_test.rb
index 2574242b03..9809d83315 100644
--- a/activerecord/test/cases/migrator_test.rb
+++ b/activerecord/test/cases/migrator_test.rb
@@ -24,6 +24,7 @@ class MigratorTest < ActiveRecord::TestCase
ActiveRecord::SchemaMigration.create_table
ActiveRecord::SchemaMigration.delete_all rescue nil
@verbose_was = ActiveRecord::Migration.verbose
+ ActiveRecord::Migration.message_count = 0
ActiveRecord::Migration.class_eval do
undef :puts
def puts(*)
@@ -243,7 +244,6 @@ class MigratorTest < ActiveRecord::TestCase
ActiveRecord::Migrator.new(:down, migrations, 0).migrate
assert_not_equal 0, ActiveRecord::Migration.message_count
- ActiveRecord::Migration.message_count = 0
end
def test_migrator_verbosity_off