From 46ebef10cbaa6b8ab09a8474d78a85ef235548f0 Mon Sep 17 00:00:00 2001 From: Mateusz Gozdek Date: Mon, 5 Nov 2018 17:55:22 +0100 Subject: [PATCH] Add test for comments without quotes --- spec/fixtures/iptables/conversion_hash.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/fixtures/iptables/conversion_hash.rb b/spec/fixtures/iptables/conversion_hash.rb index a169d50..237b569 100644 --- a/spec/fixtures/iptables/conversion_hash.rb +++ b/spec/fixtures/iptables/conversion_hash.rb @@ -247,6 +247,13 @@ ARGS_TO_HASH = { name: '000 allow from 192.168.0.1, please;another comment', }, }, + 'comments_without_quotes' => { + line: '-A INPUT -s 192.168.0.1/32 -m comment --comment comment_without_quotes', + table: 'filter', + params: { + name: '9000 comment_without_quotes', + }, + }, 'string_escape_sequences' => { line: '-A INPUT -m comment --comment "000 parse escaped \\"s, \\\'s, and \\\\s"', table: 'filter', -- 2.45.2