spec/unit/nodes_spec.rb in kitchen-nodes-0.3.0 vs spec/unit/nodes_spec.rb in kitchen-nodes-0.3.1
- old
+ new
@@ -148,14 +148,14 @@
template.gsub!('2.2.2.2', machine_ips[1])
end
before do
allow_any_instance_of(Kitchen::Transport::Base::Connection)
- .to receive(:node_execute).with('ifconfig -a')
+ .to receive(:node_execute).with('/sbin/ifconfig -a')
.and_raise(Kitchen::Transport::TransportFailed.new(''))
allow_any_instance_of(Kitchen::Transport::Base::Connection)
- .to receive(:node_execute).with('ip -4 addr show')
+ .to receive(:node_execute).with('/sbin/ip -4 addr show')
.and_return(ip_response)
end
it 'sets the ip address to the connected IP that is not localhost' do
subject.create_node