Reshaped "import wiki" feature from command-line to web interface
This commit is contained in:
parent
3e4154de82
commit
06daadc7df
7 changed files with 69 additions and 88 deletions
|
@ -83,7 +83,9 @@ class UrlRewritingHackTest < Test::Unit::TestCase
|
|||
ur.rewrite(:controller => 'file', :action => 'pic', :id => 'abc.jpg')
|
||||
assert_equal 'http://test.host/web/pic/abc.jpg',
|
||||
ur.rewrite(:web => 'web', :controller => 'file', :action => 'pic', :id => 'abc.jpg')
|
||||
|
||||
assert_equal 'http://test.host/web/import',
|
||||
ur.rewrite(:web => 'web', :controller => 'file', :action => 'import')
|
||||
|
||||
# default option is wiki
|
||||
assert_equal 'http://test.host/unknown_action',
|
||||
ur.rewrite(:controller => 'wiki', :action => 'unknown_action')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue