Skip to content

A platform for community discussion. Free, open, simple.

FIX: `BackupRestore::DatabaseRestorer` failures with Ruby 3

Yasuo Honda9a083a550c4b
diff --git a/spec/lib/backup_restore/shared_context_for_backup_restore.rb b/spec/lib/backup_restore/shared_context_for_backup_restore.rb
index 2ff78176ea4..0fbc8ade158 100644
--- a/spec/lib/backup_restore/shared_context_for_backup_restore.rb
+++ b/spec/lib/backup_restore/shared_context_for_backup_restore.rb
@@ -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" &&