puppet-tuskar/spec/spec_helper.rb
Alex Schultz bf88733ef7 Update to pull in rspec-puppet-facts
Change-Id: Ib85a7516306a5a92ad6a5f321b6aa95e4e6009aa
2016-01-06 21:28:58 -07:00

20 lines
558 B
Ruby

require 'puppetlabs_spec_helper/module_spec_helper'
require 'shared_examples'
require 'webmock/rspec'
require 'rspec-puppet-facts'
include RspecPuppetFacts
require 'defaults.rb'
RSpec.configure do |c|
c.alias_it_should_behave_like_to :it_configures, 'configures'
c.alias_it_should_behave_like_to :it_raises, 'raises'
# TODO(aschultz): remove this after all tests converted to use OSDefaults
# instead of referencing @default_facts
c.before :each do
@default_facts = OSDefaults.get_facts
end
end
at_exit { RSpec::Puppet::Coverage.report! }