From 828b7d4c2c10312139e7fb66fcf2ba2596042c0c Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Tue, 4 Nov 2008 10:43:34 -0500 Subject: [PATCH] Removing clicks_get_link, clicks_post_link, clicks_put_link, and clicks_delete_link. Use visit("/path", :http_method) instead --- lib/webrat/core/scope.rb | 24 ------------------------ lib/webrat/core/session.rb | 4 ---- 2 files changed, 28 deletions(-) diff --git a/lib/webrat/core/scope.rb b/lib/webrat/core/scope.rb index cdc1e7c..c7df13b 100644 --- a/lib/webrat/core/scope.rb +++ b/lib/webrat/core/scope.rb @@ -122,30 +122,6 @@ module Webrat end alias_method :click_link, :clicks_link - - def clicks_get_link(link_text) # :nodoc: - clicks_link link_text, :method => :get - end - - alias_method :click_get_link, :clicks_get_link - - def clicks_delete_link(link_text) # :nodoc: - clicks_link link_text, :method => :delete - end - - alias_method :click_delete_link, :clicks_delete_link - - def clicks_post_link(link_text) # :nodoc: - clicks_link link_text, :method => :post - end - - alias_method :click_post_link, :clicks_post_link - - def clicks_put_link(link_text) # :nodoc: - clicks_link link_text, :method => :put - end - - alias_method :click_put_link, :clicks_put_link # Verifies that a submit button exists for the form, then submits the form, follows # any redirects, and verifies the final page was successful. diff --git a/lib/webrat/core/session.rb b/lib/webrat/core/session.rb index b33c30b..bd035e0 100644 --- a/lib/webrat/core/session.rb +++ b/lib/webrat/core/session.rb @@ -166,10 +166,6 @@ module Webrat def_delegators :current_scope, :attach_file, :attaches_file def_delegators :current_scope, :click_area, :clicks_area def_delegators :current_scope, :click_link, :clicks_link - def_delegators :current_scope, :click_get_link, :clicks_get_link - def_delegators :current_scope, :click_delete_link, :clicks_delete_link - def_delegators :current_scope, :click_post_link, :clicks_post_link - def_delegators :current_scope, :click_put_link, :clicks_put_link def_delegators :current_scope, :click_button, :clicks_button def_delegators :current_scope, :should_see def_delegators :current_scope, :should_not_see