diff options
author | kBite <kilian.engelhardt@godaddy.com> | 2021-02-16 16:38:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-16 16:38:38 +0100 |
commit | 7ae636c87145c4fc8a23c1face61720dd394403b (patch) | |
tree | fd3d59f4e260a3907c02f74400c87a1593e091ba /spec | |
parent | e22b12852d840869edb75ba1fbf767af75ba1b6d (diff) | |
parent | 78f059837a97186bf6843b44fdc74abff48f7ad4 (diff) | |
download | puppet-ferm-7ae636c87145c4fc8a23c1face61720dd394403b.tar.gz puppet-ferm-7ae636c87145c4fc8a23c1face61720dd394403b.tar.bz2 |
Merge pull request #121 from kBite/allow-integer-protocols
Allow numeric values as protocol references
Diffstat (limited to 'spec')
-rw-r--r-- | spec/type_aliases/protocols_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/type_aliases/protocols_spec.rb b/spec/type_aliases/protocols_spec.rb index a067b69..b13b7b2 100644 --- a/spec/type_aliases/protocols_spec.rb +++ b/spec/type_aliases/protocols_spec.rb @@ -15,6 +15,8 @@ describe 'Ferm::Protocols' do 'mh', 'all', ['icmp', 'tcp', 'udp'], + 0, + [0, 4], ].each do |value| describe value.inspect do it { is_expected.to allow_value(value) } @@ -36,6 +38,8 @@ describe 'Ferm::Protocols' do [95_000, 67_000], {}, { 'foo' => 'bar' }, + 256, + ['icmp', 256], ].each do |value| describe value.inspect do it { is_expected.not_to allow_value(value) } |