From f349e8a48cdf175e8a7e050c6cb296798e2b9cf2 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Tue, 17 Aug 2021 12:45:40 +0200 Subject: [PATCH] Use real temp folder for Docker specs --- spec/support/docker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/docker.rb b/spec/support/docker.rb index 4410edb1..d4c35e0d 100644 --- a/spec/support/docker.rb +++ b/spec/support/docker.rb @@ -10,7 +10,7 @@ RSpec.configure do |config| allow(DockerClient).to receive(:create_container).and_return(CONTAINER) allow(DockerClient).to receive(:find_image_by_tag).and_return(IMAGE) allow(DockerClient).to receive(:image_tags).and_return([IMAGE]) - allow(DockerClient).to receive(:local_workspace_path).and_return(Pathname.new('/tmp')) + allow(DockerClient).to receive(:local_workspace_path).and_return(Dir.mktmpdir) allow_any_instance_of(DockerClient).to receive(:send_command).and_return({}) allow_any_instance_of(ExecutionEnvironment).to receive(:working_docker_image?) end