Enable spec_helper.rb for os_service_default
This commit will add code to spec_helper.rb to create the os_service_default fact before all rspec-puppet tests. This is needed so that the $::os_service_default pattern is testable and we don't overwrite changes to modules that have been converted by hand. Change-Id: I657e9b550e45dfbcf0bf54d94a1a12ef6f3b03db
This commit is contained in:
parent
ee4fc8359a
commit
4143229d58
@ -5,6 +5,9 @@ require 'webmock/rspec'
|
|||||||
RSpec.configure do |c|
|
RSpec.configure do |c|
|
||||||
c.alias_it_should_behave_like_to :it_configures, 'configures'
|
c.alias_it_should_behave_like_to :it_configures, 'configures'
|
||||||
c.alias_it_should_behave_like_to :it_raises, 'raises'
|
c.alias_it_should_behave_like_to :it_raises, 'raises'
|
||||||
|
c.before :each do
|
||||||
|
@default_facts = { :os_service_default => '<SERVICE DEFAULT>' }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
at_exit { RSpec::Puppet::Coverage.report! }
|
at_exit { RSpec::Puppet::Coverage.report! }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user