Skip to content

Commit f8ae22d

Browse files
committed
updating common files
1 parent f81fd22 commit f8ae22d

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

default/serverspec/spec_helper.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
require 'net/ssh'
2323
require 'highline/import'
2424

25-
include Serverspec::Helper::Ssh
26-
include Serverspec::Helper::DetectOS
25+
set :backend, :ssh
2726

2827
RSpec.configure do |c|
2928

@@ -62,8 +61,7 @@
6261
else
6362
require 'serverspec'
6463

65-
include Serverspec::Helper::Exec
66-
include Serverspec::Helper::DetectOS
64+
set :backend, :exec
6765

6866
RSpec.configure do |c|
6967
c.before :all do

lockdown/serverspec/spec_helper.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
require 'net/ssh'
2323
require 'highline/import'
2424

25-
include Serverspec::Helper::Ssh
26-
include Serverspec::Helper::DetectOS
25+
set :backend, :ssh
2726

2827
RSpec.configure do |c|
2928

@@ -62,8 +61,7 @@
6261
else
6362
require 'serverspec'
6463

65-
include Serverspec::Helper::Exec
66-
include Serverspec::Helper::DetectOS
64+
set :backend, :exec
6765

6866
RSpec.configure do |c|
6967
c.before :all do

0 commit comments

Comments
 (0)