Merge pull request #681 from HelenCampbell/emptystringing
[puppet-modules/puppetlabs-apt.git] / spec / defines / key_compat_spec.rb
index f6013d35ba5931ccb1f292b1185a51ff04f80990..dab9d16586ff342cbfba2a43ac4d302b7b8e1330 100644 (file)
@@ -246,7 +246,7 @@ describe 'apt::key', :type => :define do
         :content => [],
       } end
       it 'fails' do
-        expect { subject.call }.to raise_error(/expects a String value/)
+        expect { subject.call }.to raise_error(/expects a/)
       end
     end
 
@@ -264,7 +264,7 @@ describe 'apt::key', :type => :define do
         :options => {},
       } end
       it 'fails' do
-        expect { subject.call }.to raise_error(/expects a String value/)
+        expect { subject.call }.to raise_error(/expects a/)
       end
     end