]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
(MODULES-1141) Update Unit test to fix failing rspec test
authorStefan Pijnappels <stefan@puppet.com>
Tue, 23 May 2017 14:31:34 +0000 (15:31 +0100)
committerStefan Pijnappels <stefan@puppet.com>
Tue, 23 May 2017 14:31:34 +0000 (15:31 +0100)
spec/unit/puppet/type/firewall_spec.rb

index 8ed8921957f8f4487c346e67456d41b486bc2f43..a84b9438296191b1e4dfe1bd245a91948c83aecc 100755 (executable)
@@ -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