Skip to content

Commit 66132ee

Browse files
committed
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: If7c0a134552ade3ecd39280eb267e63251b98f95
1 parent fbbcd89 commit 66132ee

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
require 'puppetlabs_spec_helper/module_spec_helper'
22
require 'shared_examples'
33
require 'webmock/rspec'
4-
5-
require 'puppet-openstack_spec_helper/defaults'
6-
require 'rspec-puppet-facts'
7-
include RspecPuppetFacts
4+
require 'puppet-openstack_spec_helper/facts'
85

96
RSpec.configure do |c|
107
c.alias_it_should_behave_like_to :it_configures, 'configures'
118
c.alias_it_should_behave_like_to :it_raises, 'raises'
12-
c.default_facts = { :concat_basedir => '/var/lib/puppet/concat' }
13-
# TODO(aschultz): remove this after all tests converted to use OSDefaults
14-
# instead of referencing @default_facts
15-
c.before :each do
16-
@default_facts = OSDefaults
17-
end
18-
199
end
2010

2111
at_exit { RSpec::Puppet::Coverage.report! }

0 commit comments

Comments
 (0)