Leading slash required with Rails 4.2.

git-svn-id: http://svn.redmine.org/redmine/trunk@13783 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2014-12-21 15:05:18 +00:00
parent 7ac9072270
commit 7296b569a3
6 changed files with 33 additions and 33 deletions

View File

@@ -23,22 +23,22 @@ class ProjectsTest < Redmine::IntegrationTest
def test_archive_project
subproject = Project.find(1).children.first
log_user("admin", "admin")
get "admin/projects"
get "/admin/projects"
assert_response :success
assert_template "admin/projects"
post "projects/1/archive"
post "/projects/1/archive"
assert_redirected_to "/admin/projects"
assert !Project.find(1).active?
get 'projects/1'
get '/projects/1'
assert_response 403
get "projects/#{subproject.id}"
get "/projects/#{subproject.id}"
assert_response 403
post "projects/1/unarchive"
post "/projects/1/unarchive"
assert_redirected_to "/admin/projects"
assert Project.find(1).active?
get "projects/1"
get "/projects/1"
assert_response :success
end