Merged new_web action into create_web
This commit is contained in:
parent
16dcdb6e0e
commit
63cf09059b
5 changed files with 27 additions and 26 deletions
|
@ -92,6 +92,18 @@ class AdminControllerTest < Test::Unit::TestCase
|
|||
assert_nil @wiki.webs['wiki2']
|
||||
end
|
||||
|
||||
def test_create_web_no_form_submitted
|
||||
@wiki.system[:password] = 'pswd'
|
||||
process 'create_web'
|
||||
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
|
||||
process 'edit_web', 'web' => 'wiki1'
|
||||
|
@ -100,19 +112,6 @@ class AdminControllerTest < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
|
||||
def test_new_web
|
||||
@wiki.system['password'] = 'pswd'
|
||||
process 'new_web'
|
||||
assert_success
|
||||
end
|
||||
|
||||
def test_new_web_no_password_set
|
||||
@wiki.system['password'] = nil
|
||||
process 'new_web'
|
||||
assert_redirected_to :action => 'index'
|
||||
end
|
||||
|
||||
|
||||
def test_update_web
|
||||
@wiki.system[:password] = 'pswd'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue