(maint) Unit test fixes
[puppet-modules/puppetlabs-apt.git] / spec / defines / key_compat_spec.rb
index f6013d35ba5931ccb1f292b1185a51ff04f80990..66e9f7fe90713b179dae0cac9b15ea54cc797c5d 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 value of type Undef or String/)
       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 value of type Undef or String/)
       end
     end