Refactor Net::SSH spec helpers definition and usages

This commit is contained in:
Thibault Jouan
2013-08-06 17:29:45 +00:00
parent 5d9a5f1f57
commit cff122432b
3 changed files with 29 additions and 24 deletions

View File

@@ -2,3 +2,12 @@ require 'producer/core'
require 'support/exit_helpers'
require 'support/fixtures_helpers'
require 'support/net_ssh_story_helpers'
RSpec.configure do |c|
c.include NetSSHStoryHelpers, type: :ssh
c.before(:each, type: :ssh) do
allow(remote).to receive(:session) { connection }
end
end