Removed some code from admin/create_web, the purpose of which was incomprehensible

This commit is contained in:
Alexey Verkhovsky 2005-03-26 00:19:31 +00:00
parent 2969b38bd0
commit dfcc891795
2 changed files with 0 additions and 9 deletions

View file

@ -44,9 +44,6 @@ class AdminController < ApplicationController
end
else
# no form submitted -> render template
if @wiki.system[:password].nil?
redirect_to :controller => 'wiki', :action => 'index'
end
end
end

View file

@ -98,12 +98,6 @@ class AdminControllerTest < Test::Unit::TestCase
assert_success
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
process 'edit_web', 'web' => 'wiki1'