From ec23d96ebb165c05ffb7c4f68f08da47d530ee92 Mon Sep 17 00:00:00 2001 From: Daniel Pittman Date: Thu, 3 Mar 2011 11:04:44 -0800 Subject: (#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 --- spec/unit/parser/parser_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit