Skip to content

Instantly share code, notes, and snippets.

@slyness
Created June 27, 2014 16:42
Show Gist options
  • Select an option

  • Save slyness/31c4917702eec06163cb to your computer and use it in GitHub Desktop.

Select an option

Save slyness/31c4917702eec06163cb to your computer and use it in GitHub Desktop.
require 'serverspec'
require 'pathname'
include Serverspec::Helper::Exec
include Serverspec::Helper::DetectOS
RSpec.configure do |c|
c.before :all do
c.os = backend(Serverspec::Commands::Base).check_os
c.path = '/sbin:/usr/sbin'
end
end
@slyness
Copy link
Author

slyness commented Jun 27, 2014

This is a spec_helper file for Serverspec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment