diff options
author | Akira Matsuda <ronnie@dio.jp> | 2014-08-29 10:36:27 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2014-08-29 10:58:55 +0900 |
commit | 0cc22f4b86e547880fb8f444b15f19bdb38c7bc9 (patch) | |
tree | 29905647f6fd2483cd1341e2d6dae7c38187fe33 /activerecord/test/cases | |
parent | 17b837b3f10d52c5a39ef2f49930a1ffb1b66872 (diff) | |
download | rails-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')
-rw-r--r-- | activerecord/test/cases/migrator_test.rb | 2 |
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 |