Skip to content

Commit

Permalink
Reset ActiveRecord::Migration.message_count counter before start testing
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Aug 29, 2014
1 parent 17b837b commit 0cc22f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/migrator_test.rb
Expand Up @@ -24,6 +24,7 @@ def setup
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(*)
Expand Down Expand Up @@ -243,7 +244,6 @@ def test_migrator_verbosity

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
Expand Down

0 comments on commit 0cc22f4

Please sign in to comment.