lib/serverspec/setup.rb in serverspec-0.13.1 vs lib/serverspec/setup.rb in serverspec-0.13.2
- old
+ new
@@ -212,10 +212,10 @@
end
def self.spec_helper_template
template = <<-EOF
require 'serverspec'
-<% if @os_type == 'UN*X' -%>
+<% if @os_type == 'UN*X' && @backend_type == 'Ssh' -%>
require 'pathname'
<% end -%>
<% if @backend_type == 'Ssh' -%>
require 'net/ssh'
<% end -%>