Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Puppet Camptocamp Postfix
Commits
a499c143
Commit
a499c143
authored
May 25, 2015
by
Mickaël Canévet
Browse files
Add workaround for unit tests on Puppet 4 [skip ci]
parent
a46d3970
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/spec_helper.rb
View file @
a499c143
...
...
@@ -35,7 +35,7 @@ Puppet[:modulepath] = File.join(dir, 'fixtures', 'modules')
# ticket https://tickets.puppetlabs.com/browse/MODULES-823
#
ver
=
Gem
::
Version
.
new
(
Puppet
.
version
.
split
(
'-'
).
first
)
if
Gem
::
Requirement
.
new
(
"~> 2.7.20"
)
=~
ver
||
Gem
::
Requirement
.
new
(
"~> 3.0.0"
)
=~
ver
||
Gem
::
Requirement
.
new
(
"~> 3.5"
)
=~
ver
if
Gem
::
Requirement
.
new
(
"~> 2.7.20"
)
=~
ver
||
Gem
::
Requirement
.
new
(
"~> 3.0.0"
)
=~
ver
||
Gem
::
Requirement
.
new
(
"~> 3.5"
)
=~
ver
||
Gem
::
Requirement
.
new
(
"~> 4.0"
)
puts
"augeasproviders: setting Puppet[:libdir] to work around broken type autoloading"
# libdir is only a single dir, so it can only workaround loading of one external module
Puppet
[
:libdir
]
=
"
#{
Puppet
[
:modulepath
]
}
/augeasproviders_core/lib"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment