From: Hunter Haugen Date: Wed, 12 Apr 2017 02:17:05 +0000 (-0700) Subject: (maint) Two missed failures due to parallel specs X-Git-Tag: 3.0.0~3 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=d03991464c4d7796462a328928ec8717c74aea13;p=puppet-modules%2Fpuppetlabs-apt.git (maint) Two missed failures due to parallel specs --- diff --git a/spec/defines/key_compat_spec.rb b/spec/defines/key_compat_spec.rb index 252adc6..b298f8c 100644 --- a/spec/defines/key_compat_spec.rb +++ b/spec/defines/key_compat_spec.rb @@ -278,7 +278,7 @@ describe 'apt::key', :type => :define do } end it 'fails' do - expect { subject.call }.to raise_error(/a match for Enum\['absent', 'present'\], got 'foo'/) + expect { subject.call }.to raise_error(/Enum\['absent', 'present'\]/) end end diff --git a/spec/defines/setting_spec.rb b/spec/defines/setting_spec.rb index b639e7a..cdba312 100644 --- a/spec/defines/setting_spec.rb +++ b/spec/defines/setting_spec.rb @@ -105,7 +105,7 @@ describe 'apt::setting' do context 'with ensure=banana' do let(:params) { default_params.merge({ :ensure => 'banana' }) } it do - expect { subject.call }.to raise_error(Puppet::Error, /Enum\['absent', 'file', 'present'\], got 'banana'/) + expect { subject.call }.to raise_error(Puppet::Error, /Enum\['absent', 'file', 'present'\]/) end end