# rubocop:disable Style/WordArray, Style/TrailingCommaInLiteral require 'spec_helper' describe 'Ferm::Tables' do describe 'valid values' do [ 'raw', 'mangle', 'nat', 'filter', ].each do |value| describe value.inspect do it { is_expected.to allow_value(value) } end end end describe 'invalid values' do context 'with garbage inputs' do [ :symbol, nil, 'foobar', '', true, false, ['meep', 'meep'], 65_538, [95_000, 67_000], {}, { 'foo' => 'bar' }, ].each do |value| describe value.inspect do it { is_expected.not_to allow_value(value) } end end end end end