spec/unit/nodes_spec.rb in kitchen-nodes-0.6.5 vs spec/unit/nodes_spec.rb in kitchen-nodes-0.6.6
- old
+ new
@@ -40,10 +40,10 @@
.to receive(:read).and_return(state)
allow(transport).to receive(:connection)
.and_return(Kitchen::Transport::Base::Connection.new)
allow_any_instance_of(Kitchen::Transport::Base::Connection)
.to receive(:node_execute).with('hostname -f')
- .and_return('fakehostname')
+ .and_return("fakehostname\n\n")
end
after do
FakeFS.deactivate!
FakeFS::FileSystem.clear
end