From 1cae07c07537a3b6b9ea5d673adc2267f1c28e75 Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Fri, 30 Sep 2016 13:18:57 -0600 Subject: [PATCH] Move rspec-puppet-facts to spec helper This change updates the module to use the rspec-puppet-facts as defined in the puppet-openstack_spec_helper. Change-Id: I8da03b20f05fa25aab70147d6f4445e4fdbc1101 --- spec/spec_helper.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index be3811cf..cad00b19 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,18 +1,10 @@ require 'puppetlabs_spec_helper/module_spec_helper' require 'shared_examples' - -require 'puppet-openstack_spec_helper/defaults' -require 'rspec-puppet-facts' -include RspecPuppetFacts +require 'puppet-openstack_spec_helper/facts' 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! }