From: Stefan Pijnappels Date: Tue, 23 May 2017 14:31:34 +0000 (+0100) Subject: (MODULES-1141) Update Unit test to fix failing rspec test X-Git-Tag: 1.10.0~31^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=5f59942b7ff5feee1e2e7c3912efd0aa7f433dcb;p=puppet-modules%2Fpuppetlabs-firewall.git (MODULES-1141) Update Unit test to fix failing rspec test --- diff --git a/spec/unit/puppet/type/firewall_spec.rb b/spec/unit/puppet/type/firewall_spec.rb index 8ed8921..a84b943 100755 --- a/spec/unit/puppet/type/firewall_spec.rb +++ b/spec/unit/puppet/type/firewall_spec.rb @@ -346,7 +346,7 @@ describe firewall do expect(lambda { @resource[:icmp] = 'any' }).to raise_error(Puppet::Error) end it 'should fail if icmp type is an array' do - expect(lambda { @resource[:icmp] = ['0', '8'] }).to raise_error(Puppet::Error) + expect(lambda { @resource[:icmp] = "['0', '8']" }).to raise_error(Puppet::Error) end it 'should fail if icmp type cannot be mapped to a numeric' do