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:
|
# Example:
|
||||||
# click_link_within "#user_12", "Vote"
|
# click_link_within "#user_12", "Vote"
|
||||||
def click_link_within(selector, link_text)
|
def click_link_within(selector, link_text)
|
||||||
within(selector) do |scope|
|
within(selector) do
|
||||||
scope.click_link(link_text)
|
click_link(link_text)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user