From: Jan Vansteenkiste Date: Wed, 22 Aug 2012 16:00:24 +0000 (+0200) Subject: Add test to see if type takes negative values X-Git-Tag: 0.5.0~18^2~9 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=617fafa5d7832c5346685bc74d725e947caaedd4;p=puppet-modules%2Fpuppetlabs-firewall.git Add test to see if type takes negative values --- 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