Fixed a bug with system creation; also fixed a semi-hardcoded EXPORT_DIRECTORY path in controller

This commit is contained in:
Alexey Verkhovsky 2005-01-16 01:11:08 +00:00
parent 778e9420b5
commit 88b3a1ba08
3 changed files with 15 additions and 17 deletions

View file

@ -73,7 +73,7 @@ class WikiControllerTest < Test::Unit::TestCase
process('create_system', 'password' => 'a_password', 'web_name' => 'My Wiki',
'web_address' => 'my_wiki')
assert_redirected_to :action => 'index'
assert_redirected_to :web => 'my_wiki', :action => 'show', :id => 'HomePage'
assert @controller.wiki.setup?
assert_equal 'a_password', @controller.wiki.system[:password]
assert_equal 1, @controller.wiki.webs.size
@ -89,7 +89,7 @@ class WikiControllerTest < Test::Unit::TestCase
process 'create_system', 'password' => 'a_password', 'web_name' => 'My Wiki',
'web_address' => 'my_wiki'
assert_redirected_to :action => 'index'
assert_redirected_to :web => 'my_wiki', :action => 'show', :id => 'HomePage'
assert_equal wiki_before, @controller.wiki
# and no new wikis shuld be created either
assert_equal 1, @controller.wiki.webs.size