Skip to content

Commit

Permalink
Merge pull request #36 from kou/suppress-warnings
Browse files Browse the repository at this point in the history
Suppress warnings
  • Loading branch information
jnicklas committed Jan 9, 2012
2 parents 1691851 + d648d90 commit 93fbf41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/xpath/html.rb
Expand Up @@ -88,7 +88,7 @@ def select(locator)
# Label, id, or name of the checkbox to match
#
def checkbox(locator)
xpath = locate_field(descendant(:input)[attr(:type).equals('checkbox')], locator)
locate_field(descendant(:input)[attr(:type).equals('checkbox')], locator)
end


Expand Down
4 changes: 2 additions & 2 deletions lib/xpath/renderer.rb
Expand Up @@ -105,8 +105,8 @@ def literal(node)
end

def css(current, selector)
paths = Nokogiri::CSS.xpath_for(selector).map do |selector|
"#{current}#{selector}"
paths = Nokogiri::CSS.xpath_for(selector).map do |xpath_selector|
"#{current}#{xpath_selector}"
end
union(paths)
end
Expand Down

0 comments on commit 93fbf41

Please sign in to comment.