1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Fix error message for missing fields

This commit is contained in:
Theo Hultberg and Jonas Nicklas 2009-11-17 01:19:40 +01:00 committed by Jonas Nicklas
parent b5e4314178
commit df5dc1ddbf

View file

@ -137,7 +137,7 @@ private
def find_field(locator, *kinds)
field = find_field_by_id(locator, *kinds) || find_field_by_label(locator, *kinds)
raise Capybara::ElementNotFound, "no field of kind #{kinds.inspect} with id or'#{locator}' found" unless field
raise Capybara::ElementNotFound, "no field of kind #{kinds.inspect} with id or label '#{locator}' found" unless field
field
end