Fix tests to correctly check for raised errors
diff --git a/spec/classes/backuppc_client_spec.rb b/spec/classes/backuppc_client_spec.rb
index 9345e7c..897ed70 100644
--- a/spec/classes/backuppc_client_spec.rb
+++ b/spec/classes/backuppc_client_spec.rb
@@ -4,11 +4,7 @@
 
   describe 'On an unknown operating system' do
     let(:facts) {{ :osfamily => 'Unknown' }}
-    it "should fail" do
-      expect do
-        subject 
-      end.to raise_error(Puppet::Error, /support/)
-    end
+    it { should raise_error(Puppet::Error, /is not supported by this module/) }
   end
 
   context "On Ubuntu" do
diff --git a/spec/classes/backuppc_server_spec.rb b/spec/classes/backuppc_server_spec.rb
index 3ec9c41..d9b4643 100644
--- a/spec/classes/backuppc_server_spec.rb
+++ b/spec/classes/backuppc_server_spec.rb
@@ -4,11 +4,7 @@
 
   describe 'On an unknown operating system' do
     let(:facts) {{ :osfamily => 'Unknown' }}
-    it "should fail" do
-      expect do
-        subject 
-      end.to raise_error(Puppet::Error, /is not supported by this module/)
-    end
+    it { should raise_error(Puppet::Error, /is not supported by this module/) }
   end
 
   context "On Ubuntu" do