Add save_and_open_page

This commit is contained in:
Bryan Helmkamp 2008-04-07 19:29:45 -04:00
parent aff769c4e7
commit d492c4fb90
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,10 @@ module ActionController
@current_page = Webrat::Page.new(self, *args) @current_page = Webrat::Page.new(self, *args)
end end
def save_and_open_page
current_page.save_and_open
end
[:reloads, :fills_in, :clicks_button, :selects, :chooses, :checks, :unchecks, :clicks_link, :clicks_put_link, :clicks_get_link, :clicks_post_link, :clicks_delete_link].each do |method_name| [:reloads, :fills_in, :clicks_button, :selects, :chooses, :checks, :unchecks, :clicks_link, :clicks_put_link, :clicks_get_link, :clicks_post_link, :clicks_delete_link].each do |method_name|
define_method(method_name) do |*args| define_method(method_name) do |*args|
current_page.send(method_name, *args) current_page.send(method_name, *args)