Removed some code from admin/create_web, the purpose of which was incomprehensible
This commit is contained in:
parent
2969b38bd0
commit
dfcc891795
|
@ -44,9 +44,6 @@ class AdminController < ApplicationController
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
# no form submitted -> render template
|
# no form submitted -> render template
|
||||||
if @wiki.system[:password].nil?
|
|
||||||
redirect_to :controller => 'wiki', :action => 'index'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -98,12 +98,6 @@ class AdminControllerTest < Test::Unit::TestCase
|
||||||
assert_success
|
assert_success
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_create_web_no_form_submitted_and_no_password_set
|
|
||||||
@wiki.system[:password] = nil
|
|
||||||
process 'create_web'
|
|
||||||
assert_redirected_to :action => 'index'
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
def test_edit_web_no_form
|
def test_edit_web_no_form
|
||||||
process 'edit_web', 'web' => 'wiki1'
|
process 'edit_web', 'web' => 'wiki1'
|
||||||
|
|
Loading…
Reference in a new issue