Changes in xpath mean we can just #to_s this now!

This commit is contained in:
Jonas Nicklas 2012-01-31 16:44:41 +01:00
parent 1c6ea8ac3e
commit 026e0b3406
2 changed files with 2 additions and 7 deletions

View File

@ -17,12 +17,7 @@ module Capybara
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)

2
xpath

@ -1 +1 @@
Subproject commit ddbf50ef74c4655207ce1fc8c4ec62cef38a7789
Subproject commit a31816d86ad341962aa1019e08f5835daad87b8c