Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8396268
spec_helper.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1015 B
Subscribers
None
spec_helper.rb
View Options
# This file is managed via modulesync
# https://github.com/voxpupuli/modulesync
# https://github.com/voxpupuli/modulesync_config
RSpec
.
configure
do
|
c
|
c
.
mock_with
:rspec
end
require
'puppetlabs_spec_helper/module_spec_helper'
require
'rspec-puppet-facts'
include
RspecPuppetFacts
if
File
.
exist?
(
File
.
join
(
__dir__
,
'default_module_facts.yml'
))
facts
=
YAML
.
load
(
File
.
read
(
File
.
join
(
__dir__
,
'default_module_facts.yml'
)))
if
facts
facts
.
each
do
|
name
,
value
|
add_custom_fact
name
.
to_sym
,
value
end
end
end
if
Dir
.
exist?
(
File
.
expand_path
(
'../../lib'
,
__FILE__
))
require
'coveralls'
require
'simplecov'
require
'simplecov-console'
SimpleCov
.
formatters
=
[
SimpleCov
::
Formatter
::
HTMLFormatter
,
SimpleCov
::
Formatter
::
Console
]
SimpleCov
.
start
do
track_files
'lib/**/*.rb'
add_filter
'/spec'
add_filter
'/vendor'
add_filter
'/.vendor'
end
end
RSpec
.
configure
do
|
c
|
# Coverage generation
c
.
after
(
:suite
)
do
RSpec
::
Puppet
::
Coverage
.
report!
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jun 4 2025, 7:51 PM (12 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3380596
Attached To
rSPUUPD Unattended upgrades Puppet module
Event Timeline
Log In to Comment