Removed compiler arity spec
This spec isn't very useful and breaks on 1.9 due to it apparently handling arity values differently.
This commit is contained in:
parent
435115c454
commit
b74f8dc1a3
|
@ -40,13 +40,6 @@ describe Oga::XPath::Compiler do
|
|||
block.lambda?.should == true
|
||||
end
|
||||
|
||||
it 'returns a Proc with a single required argument' do
|
||||
ast = parse_xpath('foo')
|
||||
|
||||
# Only the input document is required.
|
||||
@compiler.compile(ast).arity.should == -2
|
||||
end
|
||||
|
||||
describe 'calling the compiled Proc' do
|
||||
it 'returns a NodeSet' do
|
||||
doc = parse('<foo></foo>')
|
||||
|
|
Loading…
Reference in New Issue