require 'spec_helper'
require 'chefspec'
require 'chefspec/librarian'

RSpec.configure do |config|
  config.platform = 'mac_os_x'
  config.version = '10.11.1' # via https://github.com/customink/fauxhai/tree/master/lib/fauxhai/platforms/mac_os_x
  config.before do
    stub_const('ENV', 'SUDO_USER' => 'fauxhai')
    stub_command('which git').and_return(true)
  end
  config.after(:suite) { FileUtils.rm_r('.librarian') }
end

require 'spec_helper'
require 'chefspec'
require 'chefspec/librarian'

RSpec.configure do |config|
  config.platform = 'mac_os_x'
  config.version = '10.11.1' # via https://github.com/customink/fauxhai/tree/master/lib/fauxhai/platforms/mac_os_x
  config.before do
    stub_const('ENV', 'SUDO_USER' => 'fauxhai')
    stub_command('which git').and_return(true) # because of homebrew recipe
  end
  config.after(:suite) { FileUtils.rm_r('.librarian') }
end

Add comment to command stub
Add comment to command stub
