summaryrefslogtreecommitdiff
path: root/spec/unit/parser/functions/split_spec.rb
diff options
context:
space:
mode:
authorStig Sandbeck Mathisen <ssm@debian.org>2013-02-05 10:44:00 +0100
committerStig Sandbeck Mathisen <ssm@debian.org>2013-02-05 10:44:00 +0100
commit107e8d1a41d447403883a6f6faa1cc40fb904720 (patch)
treeaaaeca9cb6289b3db94a105e6cb1b1270292337c /spec/unit/parser/functions/split_spec.rb
parent7a3cd3a80c8d57462509c7e193dfcc11fc61a191 (diff)
parent480379d1f61d88e732bd10d6773845a788351ed3 (diff)
downloadpuppet-upstream/3.1.0.tar.gz
Imported Upstream version 3.1.0upstream/3.1.0
Diffstat (limited to 'spec/unit/parser/functions/split_spec.rb')
-rwxr-xr-xspec/unit/parser/functions/split_spec.rb8
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