Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #28880 from bogdanvlviv/fix-migrator-test
Fix MigratorTest#test_migrator_verbosity
  • Loading branch information
rafaelfranca committed Apr 25, 2017
2 parents 013c7d5 + 09c5236 commit 550b5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/migrator_test.rb
Expand Up @@ -299,6 +299,7 @@ def test_migrator_double_down
def test_migrator_verbosity
_, migrations = sensors(3)

ActiveRecord::Migration.verbose = true
ActiveRecord::Migrator.new(:up, migrations, 1).migrate
assert_not_equal 0, ActiveRecord::Migration.message_count

Expand All @@ -311,7 +312,6 @@ def test_migrator_verbosity
def test_migrator_verbosity_off
_, migrations = sensors(3)

ActiveRecord::Migration.message_count = 0
ActiveRecord::Migration.verbose = false
ActiveRecord::Migrator.new(:up, migrations, 1).migrate
assert_equal 0, ActiveRecord::Migration.message_count
Expand Down

0 comments on commit 550b5e0

Please sign in to comment.