From: Eric Putnam Date: Wed, 10 May 2017 17:58:41 +0000 (-0700) Subject: (maint) modify to account for spaces in iptables-save output X-Git-Tag: 1.9.0~3^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=bc097e12d79bc17aaeb57ff2ebd6d2704488fbbf;p=puppet-modules%2Fpuppetlabs-firewall.git (maint) modify to account for spaces in iptables-save output for nflog_spec we check iptables-save output and for --nflog-prefix, there can be varying amounts of space, so this accounts for that --- diff --git a/spec/acceptance/nflog_spec.rb b/spec/acceptance/nflog_spec.rb index d5f7a70..6ce2035 100644 --- a/spec/acceptance/nflog_spec.rb +++ b/spec/acceptance/nflog_spec.rb @@ -42,7 +42,7 @@ describe 'nflog' do it 'contains the rule' do shell('iptables-save') do |r| - expect(r.stdout).to match(/NFLOG --nflog-prefix "#{prefix}"/) + expect(r.stdout).to match(/NFLOG --nflog-prefix +"#{prefix}"/) end end end