explicit action and test for edit_web

This commit is contained in:
Alexey Verkhovsky 2005-01-23 18:30:33 +00:00
parent a3142c377a
commit 780891349a
2 changed files with 11 additions and 0 deletions

View file

@ -34,6 +34,10 @@ class WikiController < ApplicationController
end end
end end
def edit_web
# to template
end
def new_system def new_system
redirect_to(:action => 'index') if wiki.setup? redirect_to(:action => 'index') if wiki.setup?
# otherwise, to template # otherwise, to template

View file

@ -151,6 +151,13 @@ class WikiControllerTest < Test::Unit::TestCase
end end
def test_edit_web
process 'edit_web', 'web' => 'wiki1'
# this action simply renders a form
assert_success
end
def test_export_html def test_export_html
setup_wiki_with_three_pages setup_wiki_with_three_pages