From b9bcd21b2b166ccb2e50331a8fef30def2b363e3 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Fri, 10 Jan 2020 20:18:48 +0900 Subject: [PATCH] Distinguish hash argument and keyword argument in arguments of XML::Querying#xpath --- spec/oga/xml/querying_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/oga/xml/querying_spec.rb b/spec/oga/xml/querying_spec.rb index df20813..10f2c2b 100644 --- a/spec/oga/xml/querying_spec.rb +++ b/spec/oga/xml/querying_spec.rb @@ -19,7 +19,7 @@ describe Oga::XML::Querying do end it 'evaluates an expression using a variable' do - expect(@document.xpath('$number', 'number' => 10)).to eq(10) + expect(@document.xpath('$number', {'number' => 10})).to eq(10) end it 'respects custom namespace aliases' do @@ -37,7 +37,7 @@ describe Oga::XML::Querying do end it 'evaluates an expression using a variable' do - expect(@document.at_xpath('$number', 'number' => 10)).to eq(10) + expect(@document.at_xpath('$number', {'number' => 10})).to eq(10) end it 'respects custom namespace aliases' do