diff options
author | Daniel Pittman <daniel@rimspace.net> | 2011-03-03 11:04:44 -0800 |
---|---|---|
committer | Daniel Pittman <daniel@rimspace.net> | 2011-03-03 16:30:23 -0800 |
commit | ec23d96ebb165c05ffb7c4f68f08da47d530ee92 (patch) | |
tree | f86a90a9e39ae2b744a7a61326c18568630ed1f1 | |
parent | 93082e4a683d417603aeb3bffb73b45d007315a7 (diff) | |
download | puppet-ec23d96ebb165c05ffb7c4f68f08da47d530ee92.tar.gz puppet-ec23d96ebb165c05ffb7c4f68f08da47d530ee92.tar.xz puppet-ec23d96ebb165c05ffb7c4f68f08da47d530ee92.zip |
(#6582) eliminate a backtrace from mismatched block arguments.
This was tightly coupled to the code implementation; it mostly still is, but
now allows argument extension without needing to adjust the test which is
only focused on the first argument anyhow.
Reviewed-By: Nick Lewis <nick@puppetlabs.com>
-rwxr-xr-x | spec/unit/parser/parser_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/parser/parser_spec.rb b/spec/unit/parser/parser_spec.rb index f5df3041c..d5861d7db 100755 --- a/spec/unit/parser/parser_spec.rb +++ b/spec/unit/parser/parser_spec.rb @@ -281,7 +281,7 @@ describe Puppet::Parser do it "should include docs when the AST class uses them" do @class.expects(:use_docs).returns true @class.stubs(:new) - @parser.expects(:ast_context).with{ |a| a[0] == true }.returns({}) + @parser.expects(:ast_context).with{ |*a| a[0] == true }.returns({}) @parser.ast(@class, :file => "/bar") end |