Updating click_link_within to use the new block style

This commit is contained in:
Bryan Helmkamp 2008-11-06 23:07:26 -05:00
parent b9bbc91240
commit ee3f70edf4
1 changed files with 2 additions and 2 deletions

View File

@ -125,8 +125,8 @@ module Webrat
# Example:
# click_link_within "#user_12", "Vote"
def click_link_within(selector, link_text)
within(selector) do |scope|
scope.click_link(link_text)
within(selector) do
click_link(link_text)
end
end