<commit_before>require 'spec_helper'
require 'chefspec'
require 'chefspec/librarian'

RSpec.configure do |config|
  config.platform = 'mac_os_x'
  config.version = '10.9.2' # FIXME: change to 10.9.3.json when available ...
  # see https://github.com/customink/fauxhai/tree/master/lib/fauxhai/platforms/mac_os_x
  config.before { stub_const('ENV', 'SUDO_USER' => 'fauxhai') }
  config.after(:suite) { FileUtils.rm_r('.librarian') }
end<commit_msg>Fix stubbing for homebrew recipe; update fauxhai version<commit_after>require 'spec_helper'
require 'chefspec'
require 'chefspec/librarian'

RSpec.configure do |config|
  config.platform = 'mac_os_x'
  config.version = '10.12' # 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
{'fraction_non_alphanumeric': 0.14696485623003194, 'fraction_numerical': 0.012779552715654952, 'mean_word_length': 5.064516129032258, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1970227', 'n_tokens_mistral': 358, 'n_tokens_neox': 348, 'n_words': 60}