From 3e05ac06393e934a6910a5d747022565ff1e618c Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Mon, 15 May 2017 09:09:25 -0700 Subject: [PATCH] Stub out the which check within compose tests --- test/unit/plugins/providers/docker/driver_compose_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/plugins/providers/docker/driver_compose_test.rb b/test/unit/plugins/providers/docker/driver_compose_test.rb index 2fdb5fd53..fa1cada06 100644 --- a/test/unit/plugins/providers/docker/driver_compose_test.rb +++ b/test/unit/plugins/providers/docker/driver_compose_test.rb @@ -32,12 +32,13 @@ describe VagrantPlugins::DockerProvider::Driver::Compose do end let(:data_directory){ double("data-directory", join: composition_path) } let(:local_data_path){ double("local-data-path") } - let(:compose_execute_up){ ["docker-compose", "-f", "docker-compose.yml", "-p", "cwd", "up", "-d", "--remove-orphans", {}] } + let(:compose_execute_up){ ["docker-compose", "-f", "docker-compose.yml", "-p", "cwd", "up", "--remove-orphans", "-d", {}] } subject{ described_class.new(machine) } before do + allow(Vagrant::Util::Which).to receive(:which).and_return("/dev/null/docker-compose") allow(env).to receive(:lock).and_yield allow(Pathname).to receive(:new).with(local_data_path).and_return(local_data_path) allow(local_data_path).to receive(:join).and_return(data_directory)