Improve net-ssh mock connection usage in specs
This commit is contained in:
parent
e676eb40d6
commit
9040420360
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user