From ee3f70edf4af1e6b5025f2cbf2096096e7ccfc44 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Thu, 6 Nov 2008 23:07:26 -0500 Subject: [PATCH] Updating click_link_within to use the new block style --- lib/webrat/core/session.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/webrat/core/session.rb b/lib/webrat/core/session.rb index f126233..3032244 100644 --- a/lib/webrat/core/session.rb +++ b/lib/webrat/core/session.rb @@ -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