summaryrefslogtreecommitdiff
path: root/spec/support/shared/context/config.rb
blob: 7c4ae8dca61c4e11e77fc0ddbcf2f4750cfc4649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#
# 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"

# 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