Add allow for docker driver execute method
This commit is contained in:
parent
21db2db9ac
commit
f14cf09af6
|
@ -63,6 +63,10 @@ describe VagrantPlugins::DockerProvider::Action::ConnectNetworks do
|
|||
|
||||
subject { described_class.new(app, env) }
|
||||
|
||||
before do
|
||||
allow(driver).to receive(:execute) { |*args| @cmd = args.join(' ') }
|
||||
end
|
||||
|
||||
after do
|
||||
sandbox.close
|
||||
end
|
||||
|
|
|
@ -52,6 +52,10 @@ describe VagrantPlugins::DockerProvider::Action::DestroyNetwork do
|
|||
|
||||
subject { described_class.new(app, env) }
|
||||
|
||||
before do
|
||||
allow(driver).to receive(:execute) { |*args| @cmd = args.join(' ') }
|
||||
end
|
||||
|
||||
after do
|
||||
sandbox.close
|
||||
end
|
||||
|
|
|
@ -40,6 +40,10 @@ describe VagrantPlugins::DockerProvider::Action::Login do
|
|||
|
||||
subject { described_class.new(app, env) }
|
||||
|
||||
before do
|
||||
allow(driver).to receive(:execute) { |*args| @cmd = args.join(' ') }
|
||||
end
|
||||
|
||||
after do
|
||||
sandbox.close
|
||||
end
|
||||
|
|
|
@ -64,6 +64,10 @@ describe VagrantPlugins::DockerProvider::Action::PrepareNetworks do
|
|||
|
||||
subject { described_class.new(app, env) }
|
||||
|
||||
before do
|
||||
allow(driver).to receive(:execute) { |*args| @cmd = args.join(' ') }
|
||||
end
|
||||
|
||||
after do
|
||||
sandbox.close
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue