From 8fbb917dd86948bbd2bec0510e8a6812cefaa469 Mon Sep 17 00:00:00 2001 From: Sebastien Badia Date: Thu, 20 Mar 2014 20:38:10 +0100 Subject: [PATCH] [spec] Fix os unsupported failing message (refs: #371) --- manifests/init.pp | 2 +- spec/classes/cloud_init_spec.rb | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index cd8fbf92..063dfbce 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -23,7 +23,7 @@ class cloud( ) { 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 diff --git a/spec/classes/cloud_init_spec.rb b/spec/classes/cloud_init_spec.rb index 7cbab7ac..58e35832 100644 --- a/spec/classes/cloud_init_spec.rb +++ b/spec/classes/cloud_init_spec.rb @@ -96,10 +96,8 @@ describe 'cloud' do end 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