diff options
author | Adrien Thebo <git@somethingsinistral.net> | 2013-05-28 11:14:28 -0700 |
---|---|---|
committer | Adrien Thebo <git@somethingsinistral.net> | 2013-05-28 11:14:28 -0700 |
commit | 65380bcdfbe91f85013d8a925cdd719826209ce4 (patch) | |
tree | 11d473448914fc174b9c987edb433565ad00e035 /spec | |
parent | dd0a4220d591f778e828f98e73ac67ed9e3b97c4 (diff) |
(maint) Clean up range_spec error expectation
Replace `lambda` with `expect` for making an error expectation
Add an explicit error message in expectation
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/puppet/parser/functions/range_spec.rb | 2 |
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 |