summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@rimspace.net>2011-02-12 11:44:19 -0800
committerDaniel Pittman <daniel@rimspace.net>2011-02-12 11:45:33 -0800
commitb5b5923bf41196f5e72a69bfa627120c75732fe5 (patch)
tree436218854ccc50181dd7cf985d1ca261c3950b8e /spec
parent1abfd9c2e550be8cebdd94629d0f9759f14f7f34 (diff)
downloadpuppet-b5b5923bf41196f5e72a69bfa627120c75732fe5.tar.gz
puppet-b5b5923bf41196f5e72a69bfa627120c75732fe5.tar.xz
puppet-b5b5923bf41196f5e72a69bfa627120c75732fe5.zip
misc: ast_context has two arguments, not one.
This updates the spec expectation to reflect that, eliminating a warning during the spec run.
Diffstat (limited to 'spec')
-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 9aab6a716..2f5d4b8ea 100755
--- a/spec/unit/parser/parser_spec.rb
+++ b/spec/unit/parser/parser_spec.rb
@@ -276,7 +276,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{ |docs, line| docs == true }.returns({})
@parser.ast(@class, :file => "/bar")
end