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
This commit is contained in:
Jean-Philippe Lang
2010-11-14 16:45:32 +00:00
parent 2ee45e8cac
commit 2fab7bd9b1
19 changed files with 57 additions and 57 deletions

View File

@@ -54,7 +54,7 @@ class GroupsControllerTest < ActionController::TestCase
assert_difference 'Group.count' do
post :create, :group => {:lastname => 'New group'}
end
assert_redirected_to 'groups'
assert_redirected_to '/groups'
end
def test_edit
@@ -65,14 +65,14 @@ class GroupsControllerTest < ActionController::TestCase
def test_update
post :update, :id => 10
assert_redirected_to 'groups'
assert_redirected_to '/groups'
end
def test_destroy
assert_difference 'Group.count', -1 do
post :destroy, :id => 10
end
assert_redirected_to 'groups'
assert_redirected_to '/groups'
end
def test_add_users