FIX: BackupRestore::DatabaseRestorer failures with Ruby 3

Implemented workaround suggested at
https://github.com/freerange/mocha/issues/445#issuecomment-644944003
This commit is contained in:
Yasuo Honda 2021-10-12 20:32:50 +09:00 committed by Robin Ward
parent 1b99f99ff7
commit 9a083a550c

View File

@ -33,7 +33,7 @@ shared_context "shared stuff" do
end
def expect_db_migrate
Discourse::Utils.expects(:execute_command).with do |env, *command, **options|
Discourse::Utils.expects(:execute_command).with do |env, *command, options|
env["SKIP_POST_DEPLOYMENT_MIGRATIONS"] == "0" &&
env["SKIP_OPTIMIZE_ICONS"] == "1" &&
env["DISABLE_TRANSLATION_OVERRIDES"] == "1" &&