diff options
author | Ken Barber <ken@bob.sh> | 2011-07-28 21:10:33 +0100 |
---|---|---|
committer | Ken Barber <ken@bob.sh> | 2011-07-28 21:10:33 +0100 |
commit | 1a7bd1ae8321bfc3d2ae87f1d5184828abf56916 (patch) | |
tree | 3485eebc6cff7be3aad3b487bcef3aef92a34e7d /spec/unit/parser | |
parent | 313df566bf5cfcbef73fc8182ccb07ddf2f13feb (diff) | |
download | puppet-stdlib-1a7bd1ae8321bfc3d2ae87f1d5184828abf56916.tar.gz puppet-stdlib-1a7bd1ae8321bfc3d2ae87f1d5184828abf56916.tar.bz2 |
Remove is_valid_netmask instead of unstubbing. Doesn't seem like a sensible function on its own.
Diffstat (limited to 'spec/unit/parser')
-rw-r--r-- | spec/unit/parser/functions/is_valid_netmask_spec.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/unit/parser/functions/is_valid_netmask_spec.rb b/spec/unit/parser/functions/is_valid_netmask_spec.rb deleted file mode 100644 index 97cbb7c..0000000 --- a/spec/unit/parser/functions/is_valid_netmask_spec.rb +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env rspec -require 'spec_helper' - -describe "the is_valid_netmask function" do - before :all do - Puppet::Parser::Functions.autoloader.loadall - end - - before :each do - @scope = Puppet::Parser::Scope.new - end - - it "should exist" do - Puppet::Parser::Functions.function("is_valid_netmask").should == "function_is_valid_netmask" - end - - it "should raise a ParseError if there is less than 1 arguments" do - lambda { @scope.function_is_valid_netmask([]) }.should( raise_error(Puppet::ParseError)) - end - -end |