spec/unit/action/forward_ports_spec.rb in vagrant-libvirt-0.9.0 vs spec/unit/action/forward_ports_spec.rb in vagrant-libvirt-0.10.0
- old
+ new
@@ -193,10 +193,9 @@
].each do |port_pid|
File.write(data_dir.to_s + "/ssh_#{port_pid[:port]}.pid", port_pid[:pid])
end
end
it 'should terminate each of the processes' do
- expect(logger).to receive(:info).with(no_args) # don't know how to test translations from vagrant
expect(subject).to receive(:ssh_pid?).with("10001").and_return(true)
expect(subject).to receive(:ssh_pid?).with("10002").and_return(true)
expect(logger).to receive(:debug).with(/Killing pid/).twice()
expect(logger).to receive(:info).with('Removing ssh pid files')
expect(subject).to receive(:system).with("kill 10001")