diff --git a/History.txt b/History.txt index 8813943..6d615e9 100644 --- a/History.txt +++ b/History.txt @@ -18,6 +18,7 @@ * Adding clicking link by id in selenium mode lh221 (larrytheliquid) * Adding fix for have_selector and have_xpath in descendent blocks lh234 (Thomas Jack) * Adding fix for fields with labels with special characters (Thomas Jack, Mike Gaffney, Bryan Hemlkamp) + * Deprecated current_page lh50 (Mike Gaffney) == 0.4.4 / 2009-04-06 diff --git a/lib/webrat/core/session.rb b/lib/webrat/core/session.rb index 8935da2..c388c40 100644 --- a/lib/webrat/core/session.rb +++ b/lib/webrat/core/session.rb @@ -69,6 +69,7 @@ For example: # For backwards compatibility -- removing in 1.0 def current_page #:nodoc: + warn "current_page is deprecated and will be going away in the next release. Use current_url instead." page = OpenStruct.new page.url = @current_url page.http_method = @http_method