From 617fafa5d7832c5346685bc74d725e947caaedd4 Mon Sep 17 00:00:00 2001 From: Jan Vansteenkiste Date: Wed, 22 Aug 2012 18:00:24 +0200 Subject: [PATCH] Add test to see if type takes negative values --- spec/unit/puppet/type/firewall_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/unit/puppet/type/firewall_spec.rb b/spec/unit/puppet/type/firewall_spec.rb index 1d6b7d8..e9b6f46 100755 --- a/spec/unit/puppet/type/firewall_spec.rb +++ b/spec/unit/puppet/type/firewall_spec.rb @@ -130,6 +130,10 @@ describe firewall do @resource[addr].should == nil end end + it "should accept a negated #{addr} as a string" do + @resource[addr] = '! 127.0.0.1' + @resource[addr].should == '! 127.0.0.1/32' + end end end -- 2.45.2