diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2017-04-26 01:01:53 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2017-04-26 01:04:52 +0300 |
commit | 09c5236e5b620766c0be14fa4b76a3186215a7b1 (patch) | |
tree | 6743ffdce353232c672845244c0cebb4b62c633e /activerecord/test | |
parent | 013c7d561fa6fe40afbba56d60632b5de0f38fa7 (diff) | |
download | rails-09c5236e5b620766c0be14fa4b76a3186215a7b1.tar.gz rails-09c5236e5b620766c0be14fa4b76a3186215a7b1.tar.bz2 rails-09c5236e5b620766c0be14fa4b76a3186215a7b1.zip |
Fix MigratorTest#test_migrator_verbosity
Add `ActiveRecord::Migration.verbose = true`
to be sure that verbose is turned on in the test.
Related to #28865
Diffstat (limited to 'activerecord/test')
-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 aadbc375af..2e4b454a86 100644 --- a/activerecord/test/cases/migrator_test.rb +++ b/activerecord/test/cases/migrator_test.rb @@ -299,6 +299,7 @@ class MigratorTest < ActiveRecord::TestCase 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 @@ -311,7 +312,6 @@ class MigratorTest < ActiveRecord::TestCase 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 |