From 9c974c027fc8668c8f436a5fff37d995a3b2f158 Mon Sep 17 00:00:00 2001 From: IBBoard Date: Sat, 26 Sep 2020 19:33:00 +0100 Subject: [PATCH] Fix fixture tests ARGS_TO_HASH was correct (unquoted) but HASH_TO_ARGS contained the rogue single quotes --- spec/fixtures/iptables/conversion_hash.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/fixtures/iptables/conversion_hash.rb b/spec/fixtures/iptables/conversion_hash.rb index 25e67bf..3157cc9 100644 --- a/spec/fixtures/iptables/conversion_hash.rb +++ b/spec/fixtures/iptables/conversion_hash.rb @@ -1390,7 +1390,7 @@ HASH_TO_ARGS = { table: 'filter', string: 'GET /index.html', }, - args: ['-t', :filter, '-p', :tcp, '-m', 'string', '--string', "'GET /index.html'", '-m', 'comment', '--comment', '000 string_matching'], + args: ['-t', :filter, '-p', :tcp, '-m', 'string', '--string', "GET /index.html", '-m', 'comment', '--comment', '000 string_matching'], }, 'string_matching_2' => { params: { @@ -1399,7 +1399,7 @@ HASH_TO_ARGS = { string: 'GET /index.html', string_algo: 'bm', }, - args: ['-t', :filter, '-p', :tcp, '-m', 'string', '--string', "'GET /index.html'", '--algo', :bm, '-m', 'comment', '--comment', '000 string_matching'], + args: ['-t', :filter, '-p', :tcp, '-m', 'string', '--string', "GET /index.html", '--algo', :bm, '-m', 'comment', '--comment', '000 string_matching'], }, 'string_matching_3' => { params: { @@ -1409,7 +1409,7 @@ HASH_TO_ARGS = { string_from: '1', string_to: '65535', }, - args: ['-t', :filter, '-p', :tcp, '-m', 'string', '--string', "'GET /index.html'", '--from', '1', '--to', '65535', '-m', 'comment', '--comment', '000 string_matching'], + args: ['-t', :filter, '-p', :tcp, '-m', 'string', '--string', "GET /index.html", '--from', '1', '--to', '65535', '-m', 'comment', '--comment', '000 string_matching'], }, 'nfqueue_jump1' => { params: { -- 2.45.2