diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-04-25 16:32:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-25 16:32:08 -0700 |
commit | 550b5e0824cc1cbbe21a1554d1b3f347af08dd30 (patch) | |
tree | 6743ffdce353232c672845244c0cebb4b62c633e /activerecord | |
parent | 013c7d561fa6fe40afbba56d60632b5de0f38fa7 (diff) | |
parent | 09c5236e5b620766c0be14fa4b76a3186215a7b1 (diff) | |
download | rails-550b5e0824cc1cbbe21a1554d1b3f347af08dd30.tar.gz rails-550b5e0824cc1cbbe21a1554d1b3f347af08dd30.tar.bz2 rails-550b5e0824cc1cbbe21a1554d1b3f347af08dd30.zip |
Merge pull request #28880 from bogdanvlviv/fix-migrator-test
Fix MigratorTest#test_migrator_verbosity
Diffstat (limited to 'activerecord')
-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 |