From 780891349a8ec112d8ac9a936329fe777e9c3041 Mon Sep 17 00:00:00 2001 From: Alexey Verkhovsky Date: Sun, 23 Jan 2005 18:30:33 +0000 Subject: [PATCH] explicit action and test for edit_web --- app/controllers/wiki_controller.rb | 4 ++++ test/functional/wiki_controller_test.rb | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index c1676dd5..82ab703d 100755 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -34,6 +34,10 @@ class WikiController < ApplicationController end end + def edit_web + # to template + end + def new_system redirect_to(:action => 'index') if wiki.setup? # otherwise, to template diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 9ec23832..ee01b21d 100755 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -151,6 +151,13 @@ class WikiControllerTest < Test::Unit::TestCase end + def test_edit_web + process 'edit_web', 'web' => 'wiki1' + # this action simply renders a form + assert_success + end + + def test_export_html setup_wiki_with_three_pages