From f8741a1e4a9a0bd16488fb283c2dba3e88740b4a Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Fri, 25 Nov 2016 04:16:20 +0900 Subject: Suppress migration message in the test --- activerecord/test/cases/adapters/postgresql/uuid_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/activerecord/test/cases/adapters/postgresql/uuid_test.rb b/activerecord/test/cases/adapters/postgresql/uuid_test.rb index ab0815631f..934fef41c0 100644 --- a/activerecord/test/cases/adapters/postgresql/uuid_test.rb +++ b/activerecord/test/cases/adapters/postgresql/uuid_test.rb @@ -236,6 +236,9 @@ class PostgresqlUUIDGenerationTest < ActiveRecord::PostgreSQLTestCase if ActiveRecord::Base.connection.supports_pgcrypto_uuid? def test_schema_dumper_for_uuid_primary_key_default_in_legacy_migration + @verbose_was = ActiveRecord::Migration.verbose + ActiveRecord::Migration.verbose = false + migration = Class.new(ActiveRecord::Migration[4.2]) do def version; 101 end def migrate(x) @@ -248,6 +251,7 @@ class PostgresqlUUIDGenerationTest < ActiveRecord::PostgreSQLTestCase assert_match(/\bcreate_table "pg_uuids_4", id: :uuid, default: -> { "uuid_generate_v4\(\)" }/, schema) ensure drop_table "pg_uuids_4" + ActiveRecord::Migration.verbose = @verbose_was end else end -- cgit v1.2.3