diff options
Diffstat (limited to 'spec/unit/parser/functions/split_spec.rb')
| -rwxr-xr-x | spec/unit/parser/functions/split_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/parser/functions/split_spec.rb b/spec/unit/parser/functions/split_spec.rb index 20a6f4204..5ddbe8d44 100755 --- a/spec/unit/parser/functions/split_spec.rb +++ b/spec/unit/parser/functions/split_spec.rb @@ -16,12 +16,12 @@ describe "the split function" do Puppet::Parser::Functions.function("split").should == "function_split" end - it "should raise a ParseError if there is less than 2 arguments" do - lambda { @scope.function_split(["foo"]) }.should( raise_error(Puppet::ParseError)) + it "should raise a ArgumentError if there is less than 2 arguments" do + lambda { @scope.function_split(["foo"]) }.should( raise_error(ArgumentError)) end - it "should raise a ParseError if there is more than 2 arguments" do - lambda { @scope.function_split(["foo", "bar", "gazonk"]) }.should( raise_error(Puppet::ParseError)) + it "should raise a ArgumentError if there is more than 2 arguments" do + lambda { @scope.function_split(["foo", "bar", "gazonk"]) }.should( raise_error(ArgumentError)) end it "should raise a RegexpError if the regexp is malformed" do |
