Skip to content

Commit

Permalink
Add test for comments without quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Gozdek committed Nov 8, 2018
1 parent 16f77aa commit ea42502
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/fixtures/iptables/conversion_hash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,13 @@
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',
Expand Down

0 comments on commit ea42502

Please sign in to comment.