Fixed: should redirect to the new project when copying a project.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4616 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-01-02 11:42:37 +00:00
parent ce8113dea2
commit 2d9b9362a9
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -429,7 +429,7 @@ class ProjectsControllerTest < ActionController::TestCase
@request.session[:user_id] = 1 # admin
post :copy, :id => 1, :project => {:name => 'Copy', :identifier => 'unique-copy'}
assert_response :redirect
assert_redirected_to :controller => 'projects', :action => 'settings'
assert_redirected_to :controller => 'projects', :action => 'settings', :id => 'unique-copy'
end
end