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
2a07aa09
Commit
2a07aa09
authored
Jun 26, 2015
by
Mickaël Canévet
Browse files
Fix strict_variables activation with rspec-puppet 2.2
parent
5805d227
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/spec_helper.rb
View file @
2a07aa09
...
...
@@ -11,7 +11,7 @@ RSpec.configure do |c|
@old_env
=
{}
ENV
.
each_key
{
|
k
|
@old_env
[
k
]
=
ENV
[
k
]}
Puppet
.
settings
[
:
strict_variables
]
=
true
if
Gem
::
Version
.
new
(
Puppet
::
PUPPETVERSION
)
>=
Gem
::
Version
.
new
(
'3.5'
)
c
.
strict_variables
=
Gem
::
Version
.
new
(
Puppet
.
version
)
>=
Gem
::
Version
.
new
(
'3.5'
)
Puppet
.
features
.
stubs
(
:root?
).
returns
(
true
)
end
...
...
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