explicit action and test for edit_web
This commit is contained in:
parent
a3142c377a
commit
780891349a
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue