summaryrefslogtreecommitdiffstats
path: root/spec/unit/parser/parser_spec.rb
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@rimspace.net>2011-03-03 11:04:44 -0800
committerDaniel Pittman <daniel@rimspace.net>2011-03-03 16:30:23 -0800
commitec23d96ebb165c05ffb7c4f68f08da47d530ee92 (patch)
treef86a90a9e39ae2b744a7a61326c18568630ed1f1 /spec/unit/parser/parser_spec.rb
parent93082e4a683d417603aeb3bffb73b45d007315a7 (diff)
downloadpuppet-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>
Diffstat (limited to 'spec/unit/parser/parser_spec.rb')
-rwxr-xr-xspec/unit/parser/parser_spec.rb2
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