From 42d6e094a2da7d9e837629a7b9432bdf0ce02551 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Tue, 6 Jun 2023 09:15:16 +0200 Subject: [PATCH] Fix failing spec See further https://github.com/discourse/discourse/commit/6cf863080a2dfa4136d084f9ad3e766cee3d8ae5 --- spec/requests/custom_wizard/admin/manager_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/requests/custom_wizard/admin/manager_controller_spec.rb b/spec/requests/custom_wizard/admin/manager_controller_spec.rb index 608b61fb..c5282db6 100644 --- a/spec/requests/custom_wizard/admin/manager_controller_spec.rb +++ b/spec/requests/custom_wizard/admin/manager_controller_spec.rb @@ -13,8 +13,8 @@ describe CustomWizard::AdminManagerController do template_3["id"] = 'super_mega_fun_wizard_3' @template_array = [template, template_2, template_3] - FileUtils.mkdir_p(file_from_fixtures_tmp_folder) unless Dir.exist?(file_from_fixtures_tmp_folder) - @tmp_file_path = File.join(file_from_fixtures_tmp_folder, SecureRandom.hex << 'wizards.json') + FileUtils.mkdir_p(concurrency_safe_tmp_dir) unless Dir.exist?(concurrency_safe_tmp_dir) + @tmp_file_path = File.join(concurrency_safe_tmp_dir, SecureRandom.hex << 'wizards.json') File.write(@tmp_file_path, @template_array.to_json) end