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:
Etienne Massip
2011-12-10 13:33:01 +00:00
parent eb789b147a
commit 7ba57e517b
7 changed files with 113 additions and 29 deletions
+2 -2
View File
@@ -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"