Explicitly declare all routes and deactivate default route.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8162 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -26,7 +26,7 @@ class ProjectsTest < ActionController::IntegrationTest
|
||||
get "admin/projects"
|
||||
assert_response :success
|
||||
assert_template "admin/projects"
|
||||
post "projects/archive", :id => 1
|
||||
post "projects/1/archive"
|
||||
assert_redirected_to "/admin/projects"
|
||||
assert !Project.find(1).active?
|
||||
|
||||
@@ -35,7 +35,7 @@ class ProjectsTest < ActionController::IntegrationTest
|
||||
get "projects/#{subproject.id}"
|
||||
assert_response 403
|
||||
|
||||
post "projects/unarchive", :id => 1
|
||||
post "projects/1/unarchive"
|
||||
assert_redirected_to "/admin/projects"
|
||||
assert Project.find(1).active?
|
||||
get "projects/1"
|
||||
|
||||
Reference in New Issue
Block a user