Improve net-ssh mock connection usage in specs

This commit is contained in:
Thibault Jouan 2013-08-30 05:23:16 +00:00
parent e676eb40d6
commit 9040420360

View File

@ -11,6 +11,6 @@ RSpec.configure do |c|
c.include NetSSHStoryHelpers, :ssh
c.before(:each, :ssh) do
allow(remote).to receive(:session) { connection }
allow(Net::SSH).to receive(:start) { connection }
end
end