Skip to content

Commit

Permalink
Removing clicks_get_link, clicks_post_link, clicks_put_link, and clic…
Browse files Browse the repository at this point in the history
…ks_delete_link. Use visit("/path", :http_method) instead
  • Loading branch information
brynary committed Nov 4, 2008
1 parent c01778b commit 828b7d4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
24 changes: 0 additions & 24 deletions lib/webrat/core/scope.rb
Expand Up @@ -122,30 +122,6 @@ def clicks_link(link_text, options = {})
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.
Expand Down
4 changes: 0 additions & 4 deletions lib/webrat/core/session.rb
Expand Up @@ -166,10 +166,6 @@ def formatted_error
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
Expand Down

0 comments on commit 828b7d4

Please sign in to comment.