Use real temp folder for Docker specs

This commit is contained in:
Sebastian Serth
2021-08-17 12:45:40 +02:00
parent a0ca15c6ac
commit f349e8a48c

View File

@ -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