From aaba0049abbb3be73d5fea0b09e5fc657d1914ea Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Tue, 18 Aug 2015 16:27:18 +0200 Subject: [PATCH] Updated XPath compiler arity spec --- spec/oga/xpath/compiler_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/oga/xpath/compiler_spec.rb b/spec/oga/xpath/compiler_spec.rb index c5b5954..8503ce7 100644 --- a/spec/oga/xpath/compiler_spec.rb +++ b/spec/oga/xpath/compiler_spec.rb @@ -44,7 +44,7 @@ describe Oga::XPath::Compiler do ast = parse_xpath('foo') # Only the input document is required. - @compiler.compile(ast).arity.should == 1 + @compiler.compile(ast).arity.should == -2 end describe 'calling the compiled Proc' do