```ruby
require 'spec_helper'
require 'chefspec'
require 'chefspec/librarian'

RSpec.configure do |config|
  config.platform = 'mac_os_x'
  config.version = '10.11.1'
  config.before { stub_const('ENV', 'SUDO_USER' => 'fauxhai') }
  config.after(:suite) { FileUtils.rm_r('.librarian') }
end
```

Set chef file cache path for tests
user
```ruby
require 'spec_helper'
require 'chefspec'
require 'chefspec/librarian'

RSpec.configure do |config|
  config.platform = 'mac_os_x'
  config.version = '10.11.1'
  config.before { stub_const('ENV', 'SUDO_USER' => 'fauxhai') }
  config.after(:suite) { FileUtils.rm_r('.librarian') }
  config.file_cache_path = '/var/chef/cache'
end
```
assistant