[spec] Fix os unsupported failing message (refs: #371)
This commit is contained in:
@@ -23,7 +23,7 @@ class cloud(
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
if ! ($::osfamily in [ 'RedHat', 'Debian' ]) {
|
if ! ($::osfamily in [ 'RedHat', 'Debian' ]) {
|
||||||
fail("module puppet-cloud only support ${::osfamily}, only Red Hat or Debian")
|
fail("OS family unsuppored ye (${::osfamily}), module puppet-cloud only support RedHat or Debian")
|
||||||
}
|
}
|
||||||
|
|
||||||
# motd
|
# motd
|
||||||
|
@@ -96,10 +96,8 @@ describe 'cloud' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'should fail' do
|
it 'should fail' do
|
||||||
expect { subject }.to raise_error(/module puppet-cloud only support/)
|
expect { subject }.to raise_error(/module puppet-cloud only support/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user