summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien Thebo <git@somethingsinistral.net>2013-05-28 11:14:28 -0700
committerAdrien Thebo <git@somethingsinistral.net>2013-05-28 11:14:28 -0700
commit65380bcdfbe91f85013d8a925cdd719826209ce4 (patch)
tree11d473448914fc174b9c987edb433565ad00e035
parentdd0a4220d591f778e828f98e73ac67ed9e3b97c4 (diff)
downloadpuppet-stdlib-65380bcdfbe91f85013d8a925cdd719826209ce4.tar.gz
puppet-stdlib-65380bcdfbe91f85013d8a925cdd719826209ce4.tar.bz2
(maint) Clean up range_spec error expectation
Replace `lambda` with `expect` for making an error expectation Add an explicit error message in expectation
-rw-r--r--spec/unit/puppet/parser/functions/range_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/puppet/parser/functions/range_spec.rb b/spec/unit/puppet/parser/functions/range_spec.rb
index 07b6f11..426903c 100644
--- a/spec/unit/puppet/parser/functions/range_spec.rb
+++ b/spec/unit/puppet/parser/functions/range_spec.rb
@@ -9,7 +9,7 @@ describe "the range function" do
end
it "raises a ParseError if there is less than 1 arguments" do
- lambda { scope.function_range([]) }.should( raise_error(Puppet::ParseError))
+ expect { scope.function_range([]) }.to raise_error Puppet::ParseError, /Wrong number of arguments.*0 for 1/
end
describe 'with a letter range' do