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
e321a530
Commit
e321a530
authored
Jan 19, 2015
by
Raphaël Pinson
Browse files
Fix unit tests
parent
b139cac8
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/defines/postfix_config_spec.rb
View file @
e321a530
...
...
@@ -59,7 +59,7 @@ describe 'postfix::config' do
:ensure
=>
'present'
,
}
}
it
{
is_expected
.
to
contain_augeas
(
"
set
postfix 'foo'
to 'bar'
"
).
with
(
it
{
is_expected
.
to
contain_augeas
(
"
manage
postfix 'foo'"
).
with
(
:incl
=>
'/etc/postfix/main.cf'
,
:lens
=>
'Postfix_Main.lns'
,
:changes
=>
"set foo 'bar'"
...
...
@@ -72,10 +72,23 @@ describe 'postfix::config' do
:ensure
=>
'absent'
,
}
}
it
{
is_expected
.
to
contain_augeas
(
"
r
m postfix 'foo'"
).
with
(
it
{
is_expected
.
to
contain_augeas
(
"m
anage
postfix 'foo'"
).
with
(
:incl
=>
'/etc/postfix/main.cf'
,
:lens
=>
'Postfix_Main.lns'
,
:changes
=>
"rm foo"
)
}
end
context
'when ensuring blank'
do
let
(
:params
)
{
{
:value
=>
'bar'
,
:ensure
=>
'blank'
,
}
}
it
{
is_expected
.
to
contain_augeas
(
"manage postfix 'foo'"
).
with
(
:incl
=>
'/etc/postfix/main.cf'
,
:lens
=>
'Postfix_Main.lns'
,
:changes
=>
"clear foo"
)
}
end
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