Removing clicks_get_link, clicks_post_link, clicks_put_link, and clicks_delete_link. Use visit("/path", :http_method) instead
This commit is contained in:
parent
c01778b0d3
commit
828b7d4c2c
@ -123,30 +123,6 @@ module Webrat
|
|||||||
|
|
||||||
alias_method :click_link, :clicks_link
|
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
|
# Verifies that a submit button exists for the form, then submits the form, follows
|
||||||
# any redirects, and verifies the final page was successful.
|
# any redirects, and verifies the final page was successful.
|
||||||
#
|
#
|
||||||
|
@ -166,10 +166,6 @@ module Webrat
|
|||||||
def_delegators :current_scope, :attach_file, :attaches_file
|
def_delegators :current_scope, :attach_file, :attaches_file
|
||||||
def_delegators :current_scope, :click_area, :clicks_area
|
def_delegators :current_scope, :click_area, :clicks_area
|
||||||
def_delegators :current_scope, :click_link, :clicks_link
|
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, :click_button, :clicks_button
|
||||||
def_delegators :current_scope, :should_see
|
def_delegators :current_scope, :should_see
|
||||||
def_delegators :current_scope, :should_not_see
|
def_delegators :current_scope, :should_not_see
|
||||||
|
Loading…
Reference in New Issue
Block a user