Skip to content

Commit

Permalink
Changes in xpath mean we can just #to_s this now!
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicklas committed Feb 1, 2012
1 parent 1c6ea8a commit 026e0b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions lib/capybara/query.rb
Expand Up @@ -17,12 +17,7 @@ def initialize(*args)
end
@selector ||= Selector.all[Capybara.default_selector]

xpath = @selector.call(@locator)
if xpath.respond_to?(:to_xpaths)
@xpath = xpath.to_xpath(:fuzzy)
else
@xpath = xpath.to_s
end
@xpath = @selector.call(@locator).to_s
end

def failure_message(type, node)
Expand Down
2 changes: 1 addition & 1 deletion xpath
Submodule xpath updated from ddbf50 to a31816

0 comments on commit 026e0b3

Please sign in to comment.