summaryrefslogtreecommitdiffstats
path: root/test/functional/projects_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-14 16:45:32 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-14 16:45:32 +0000
commit2fab7bd9b1f16d8e8c352dfe0c13d80ff896ea76 (patch)
tree498b1dbed91edb965db8a1cb46fc6e310fd2681e /test/functional/projects_controller_test.rb
parent2ee45e8cac909991ddf782a8d2947ae99473404a (diff)
downloadredmine-2fab7bd9b1f16d8e8c352dfe0c13d80ff896ea76.tar.gz
redmine-2fab7bd9b1f16d8e8c352dfe0c13d80ff896ea76.zip
Adds leading slash to all assert_redirected_to arguments (#6887).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4407 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r--test/functional/projects_controller_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index 59d6286a1..3cd7c3dbf 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -344,7 +344,7 @@ class ProjectsControllerTest < ActionController::TestCase
@request.session[:user_id] = 2 # manager
post :update, :id => 1, :project => {:name => 'Test changed name',
:issue_custom_field_ids => ['']}
- assert_redirected_to 'projects/ecookbook/settings'
+ assert_redirected_to '/projects/ecookbook/settings'
project = Project.find(1)
assert_equal 'Test changed name', project.name
end
@@ -360,14 +360,14 @@ class ProjectsControllerTest < ActionController::TestCase
def test_post_destroy
@request.session[:user_id] = 1 # admin
post :destroy, :id => 1, :confirm => 1
- assert_redirected_to 'admin/projects'
+ assert_redirected_to '/admin/projects'
assert_nil Project.find_by_id(1)
end
def test_archive
@request.session[:user_id] = 1 # admin
post :archive, :id => 1
- assert_redirected_to 'admin/projects'
+ assert_redirected_to '/admin/projects'
assert !Project.find(1).active?
end
@@ -375,7 +375,7 @@ class ProjectsControllerTest < ActionController::TestCase
@request.session[:user_id] = 1 # admin
Project.find(1).archive
post :unarchive, :id => 1
- assert_redirected_to 'admin/projects'
+ assert_redirected_to '/admin/projects'
assert Project.find(1).active?
end
@@ -424,7 +424,7 @@ class ProjectsControllerTest < ActionController::TestCase
def test_jump_should_redirect_to_active_tab
get :show, :id => 1, :jump => 'issues'
- assert_redirected_to 'projects/ecookbook/issues'
+ assert_redirected_to '/projects/ecookbook/issues'
end
def test_jump_should_not_redirect_to_inactive_tab