From 0fe3998f64954bb4c2ee4868f48aa11026986278 Mon Sep 17 00:00:00 2001 From: pivotal Date: Thu, 5 Mar 2009 18:03:39 -0800 Subject: [PATCH] field_named correctly delegated --- lib/webrat/core/methods.rb | 4 +++- lib/webrat/core/session.rb | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/webrat/core/methods.rb b/lib/webrat/core/methods.rb index 87729bf..e3ce198 100644 --- a/lib/webrat/core/methods.rb +++ b/lib/webrat/core/methods.rb @@ -53,7 +53,9 @@ module Webrat :field_by_xpath, :field_with_id, :selenium, - :simulate, :automate + :simulate, :automate, + :field_named + diff --git a/lib/webrat/core/session.rb b/lib/webrat/core/session.rb index 7bec3df..2d59a93 100644 --- a/lib/webrat/core/session.rb +++ b/lib/webrat/core/session.rb @@ -256,6 +256,7 @@ For example: def_delegators :current_scope, :field_by_xpath def_delegators :current_scope, :field_with_id def_delegators :current_scope, :select_option + def_delegators :current_scope, :field_named private