Updating click_link_within to use the new block style
This commit is contained in:
parent
b9bbc91240
commit
ee3f70edf4
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue