diff --git a/spec/mysql/migrate/migrate_change_table_comment_spec.rb b/spec/mysql/migrate/migrate_change_table_comment_spec.rb index 0e72b01b..d0a61080 100644 --- a/spec/mysql/migrate/migrate_change_table_comment_spec.rb +++ b/spec/mysql/migrate/migrate_change_table_comment_spec.rb @@ -10,6 +10,9 @@ t.string "gender", limit: 1, null: false t.date "hire_date", null: false end + + create_table "tenants", force: :cascade, comment: "old comment '" do |t| + end ERB end @@ -22,6 +25,9 @@ t.string "gender", limit: 1, null: false t.date "hire_date", null: false end + + create_table "tenants", force: :cascade, comment: "new comment '" do |t| + end ERB end @@ -36,6 +42,11 @@ # Table option changes are ignored on `employees`. from: {:comment=>"old comment"} to: {:comment=>"new comment"} + MSG + expect(Ridgepole::Logger.instance).to receive(:verbose_info).once.with(<<-MSG) +# Table option changes are ignored on `tenants`. + from: {:comment=>"old comment '"} + to: {:comment=>"new comment '"} MSG delta = subject.diff(expected_dsl) expect(delta.differ?).to be_falsey