spec/unit/parser/functions/extlookup_spec.rb in puppet-3.0.2 vs spec/unit/parser/functions/extlookup_spec.rb in puppet-3.1.0.rc1
- old
+ new
@@ -17,15 +17,15 @@
it "should exist" do
Puppet::Parser::Functions.function("extlookup").should == "function_extlookup"
end
- it "should raise a ParseError if there is less than 1 arguments" do
- lambda { @scope.function_extlookup([]) }.should( raise_error(Puppet::ParseError))
+ it "should raise a ArgumentError if there is less than 1 arguments" do
+ lambda { @scope.function_extlookup([]) }.should( raise_error(ArgumentError))
end
- it "should raise a ParseError if there is more than 3 arguments" do
- lambda { @scope.function_extlookup(["foo", "bar", "baz", "gazonk"]) }.should( raise_error(Puppet::ParseError))
+ it "should raise a ArgumentError if there is more than 3 arguments" do
+ lambda { @scope.function_extlookup(["foo", "bar", "baz", "gazonk"]) }.should( raise_error(ArgumentError))
end
it "should return the default" do
result = @scope.function_extlookup([ "key", "default"])
result.should == "default"