]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/apache/spec/spec_helper.rb
add Openstack modules to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / apache / spec / spec_helper.rb
1 require 'puppetlabs_spec_helper/module_spec_helper'
2
3 RSpec.configure do |c|
4   c.treat_symbols_as_metadata_keys_with_true_values = true
5
6   c.before :each do
7     # Ensure that we don't accidentally cache facts and environment
8     # between test cases.
9     Facter::Util::Loader.any_instance.stubs(:load_all)
10     Facter.clear
11     Facter.clear_messages
12
13     # Store any environment variables away to be restored later
14     @old_env = {}
15     ENV.each_key {|k| @old_env[k] = ENV[k]}
16
17     if ENV['STRICT_VARIABLES'] == 'yes'
18       Puppet.settings[:strict_variables]=true
19     end
20   end
21 end
22
23 shared_examples :compile, :compile => true do
24   it { should compile.with_all_deps }
25 end