From bc097e12d79bc17aaeb57ff2ebd6d2704488fbbf Mon Sep 17 00:00:00 2001 From: Eric Putnam Date: Wed, 10 May 2017 10:58:41 -0700 Subject: [PATCH] (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 --- spec/acceptance/nflog_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2