Merge pull request #667 from HelenCampbell/firstRelease
[puppet-modules/puppetlabs-apt.git] / spec / defines / key_compat_spec.rb
index eaf53fca45e495ccf0c52e44fae974ed3e6c3c97..02b97547400f774e532e97a33827eccee88e99df 100644 (file)
@@ -248,7 +248,7 @@ describe 'apt::key', :type => :define do
         :key_content => [],
       } end
       it 'fails' do
-        expect { subject.call }.to raise_error(/is not a string/)
+        expect { subject.call }.to raise_error(/expects a String value/)
       end
     end
 
@@ -266,7 +266,7 @@ describe 'apt::key', :type => :define do
         :key_options => {},
       } end
       it 'fails' do
-        expect { subject.call }.to raise_error(/is not a string/)
+        expect { subject.call }.to raise_error(/expects a String value/)
       end
     end
 
@@ -277,7 +277,7 @@ describe 'apt::key', :type => :define do
         }
       end
       it 'fails' do
-        expect { subject.call }.to raise_error(/does not match/)
+        expect { subject.call }.to raise_error(/a match for Enum\['absent', 'present'\], got 'foo'/)
       end
     end