X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Fdefines%2Fkey_compat_spec.rb;h=dab9d16586ff342cbfba2a43ac4d302b7b8e1330;hb=61f4e6aee2dc2a031e5ce8b8e97b55456c4e00a8;hp=f6013d35ba5931ccb1f292b1185a51ff04f80990;hpb=aba776640b70ab8123d1d614dcc2892d5c42a408;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/defines/key_compat_spec.rb b/spec/defines/key_compat_spec.rb index f6013d3..dab9d16 100644 --- a/spec/defines/key_compat_spec.rb +++ b/spec/defines/key_compat_spec.rb @@ -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