+++ /dev/null
-#
-# is_valid_netmask.rb
-#
-
-module Puppet::Parser::Functions
- newfunction(:is_valid_netmask, :type => :rvalue, :doc => <<-EOS
- EOS
- ) do |arguments|
-
- if (arguments.size != 1) then
- raise(Puppet::ParseError, "is_valid_netmask(): Wrong number of arguments "+
- "given #{arguments.size} for 1")
- end
-
- end
-end
-
-# vim: set ts=2 sw=2 et :
+++ /dev/null
-#!/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