From 5f59942b7ff5feee1e2e7c3912efd0aa7f433dcb Mon Sep 17 00:00:00 2001 From: Stefan Pijnappels Date: Tue, 23 May 2017 15:31:34 +0100 Subject: [PATCH] (MODULES-1141) Update Unit test to fix failing rspec test --- spec/unit/puppet/type/firewall_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2