blob: bb4ff7e0d129ba88fce95dd495d03cb874c7234b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#
# Define config file setups for spec tests here.
# https://www.relishapp.com/rspec/rspec-core/docs/example-groups/shared-context
#
# Required chef files here:
require "chef/config"
# Required spec files here:
require "spec_helper"
# Basic config. Nothing fancy.
shared_context "default config options" do
before do
Chef::Config[:cache_path] = windows? ? 'C:\chef' : "/var/chef"
end
# Don't need to have an after block to reset the config...
# The spec_helper.rb takes care of resetting the config state.
end
|