Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8395909
spec_helper.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
spec_helper.rb
View Options
require
'puppetlabs_spec_helper/module_spec_helper'
require
'rspec-puppet-facts'
include
RspecPuppetFacts
if
Dir
.
exist?
(
File
.
expand_path
(
'../../lib'
,
__FILE__
))
&&
RUBY_VERSION
!~
%r{^1.9}
require
'coveralls'
require
'simplecov'
require
'simplecov-console'
SimpleCov
.
formatters
=
[
SimpleCov
::
Formatter
::
HTMLFormatter
,
SimpleCov
::
Formatter
::
Console
,
Coveralls
::
SimpleCov
::
Formatter
]
SimpleCov
.
start
do
track_files
'lib/**/*.rb'
add_filter
'/spec'
add_filter
'/vendor'
add_filter
'/.vendor'
end
end
RSpec
.
configure
do
|
c
|
default_facts
=
{
puppetversion
:
Puppet
.
version
,
facterversion
:
Facter
.
version
}
default_facts
.
merge!
(
YAML
.
load
(
File
.
read
(
File
.
expand_path
(
'../default_facts.yml'
,
__FILE__
))))
if
File
.
exist?
(
File
.
expand_path
(
'../default_facts.yml'
,
__FILE__
))
default_facts
.
merge!
(
YAML
.
load
(
File
.
read
(
File
.
expand_path
(
'../default_module_facts.yml'
,
__FILE__
))))
if
File
.
exist?
(
File
.
expand_path
(
'../default_module_facts.yml'
,
__FILE__
))
c
.
default_facts
=
default_facts
end
# vim: syntax=ruby
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jun 4 2025, 7:46 PM (12 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3274054
Attached To
R141 puppet-puppet-prometheus
Event Timeline
Log In to Comment