explicit action and test for edit_web
This commit is contained in:
parent
a3142c377a
commit
780891349a
2 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue