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
10fec76c
Commit
10fec76c
authored
Nov 25, 2014
by
Raphaël Pinson
Browse files
Fix failure detection in specs
parent
e1ef97ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/classes/postfix_spec.rb
View file @
10fec76c
...
...
@@ -223,7 +223,7 @@ describe 'postfix' do
context
'and satellite is also enabled'
do
let
(
:params
)
{
{
:mta
=>
true
,
:satellite
=>
true
,
:mydestination
=>
'1.2.3.4'
,
:relayhost
=>
'2.3.4.5'
}
}
it
'should fail'
do
expect
{
subject
}.
to
raise_error
(
Puppet
::
Error
,
/Please disable one/
)
expect
{
should
compile
}.
to
raise_error
(
/Please disable one/
)
end
end
end
...
...
@@ -269,7 +269,7 @@ describe 'postfix' do
context
'and mta is also enabled'
do
let
(
:params
)
{
{
:mta
=>
true
,
:satellite
=>
true
,
:mydestination
=>
'1.2.3.4'
,
:relayhost
=>
'2.3.4.5'
}
}
it
'should fail'
do
expect
{
subject
}.
to
raise_error
(
Puppet
::
Error
,
/Please disable one/
)
expect
{
should
compile
}.
to
raise_error
(
/Please disable one/
)
end
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