Révision d7bd6638
spec update to confirm that port ranges work
spec/type_aliases/nftables_port_spec.rb | ||
---|---|---|
5 | 5 |
describe 'Nftables::Port' do |
6 | 6 |
it { is_expected.to allow_value(53) } |
7 | 7 |
it { is_expected.to allow_value([1, 1985, 65_535]) } |
8 |
it { is_expected.to allow_value([1, '53-55']) } |
|
8 | 9 |
it { is_expected.to allow_value('53-55') } |
9 | 10 |
it { is_expected.not_to allow_value('53') } |
10 | 11 |
it { is_expected.not_to allow_value([]) } |
Formats disponibles : Unified diff