Add save_and_open_page

This commit is contained in:
Bryan Helmkamp 2008-04-07 19:29:45 -04:00
parent aff769c4e7
commit d492c4fb90

View File

@ -27,6 +27,10 @@ module ActionController
@current_page = Webrat::Page.new(self, *args)
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|
define_method(method_name) do |*args|
current_page.send(method_name, *args)