summaryrefslogtreecommitdiffstats
path: root/test/functional/project_enumerations_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/project_enumerations_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/project_enumerations_controller_test.rb')
-rw-r--r--test/functional/project_enumerations_controller_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/project_enumerations_controller_test.rb b/test/functional/project_enumerations_controller_test.rb
index 942399a96..ae39f3e55 100644
--- a/test/functional/project_enumerations_controller_test.rb
+++ b/test/functional/project_enumerations_controller_test.rb
@@ -20,7 +20,7 @@ class ProjectEnumerationsControllerTest < ActionController::TestCase
}
assert_response :redirect
- assert_redirected_to 'projects/ecookbook/settings/activities'
+ assert_redirected_to '/projects/ecookbook/settings/activities'
# Created project specific activities...
project = Project.find('ecookbook')
@@ -83,7 +83,7 @@ class ProjectEnumerationsControllerTest < ActionController::TestCase
}
assert_response :redirect
- assert_redirected_to 'projects/ecookbook/settings/activities'
+ assert_redirected_to '/projects/ecookbook/settings/activities'
# Created project specific activities...
project = Project.find('ecookbook')
@@ -159,7 +159,7 @@ class ProjectEnumerationsControllerTest < ActionController::TestCase
delete :destroy, :project_id => 1
assert_response :redirect
- assert_redirected_to 'projects/ecookbook/settings/activities'
+ assert_redirected_to '/projects/ecookbook/settings/activities'
assert_nil TimeEntryActivity.find_by_id(project_activity.id)
assert_nil TimeEntryActivity.find_by_id(project_activity_two.id)
@@ -179,7 +179,7 @@ class ProjectEnumerationsControllerTest < ActionController::TestCase
delete :destroy, :project_id => 1
assert_response :redirect
- assert_redirected_to 'projects/ecookbook/settings/activities'
+ assert_redirected_to '/projects/ecookbook/settings/activities'
assert_nil TimeEntryActivity.find_by_id(project_activity.id)
assert_equal 0, TimeEntry.find_all_by_activity_id_and_project_id(project_activity.id, 1).size, "TimeEntries still assigned to project specific activity"