Add save_and_open_page
This commit is contained in:
parent
aff769c4e7
commit
d492c4fb90
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue