(maint) Unit test fixes
[puppet-modules/puppetlabs-apt.git] / spec / defines / key_spec.rb
index 1f878c3e8c65fafc5f78200e1c93da282bed0e2d..13616d97acc14f73c8d6dd84c5fb6b2402fb39a6 100644 (file)
@@ -251,7 +251,7 @@ describe 'apt::key' 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
 
@@ -269,7 +269,7 @@ describe 'apt::key' 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