diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-07 22:29:50 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-07 22:29:50 +0000 |
commit | fd4a91130465f6b5ae4fc937da13e8674ee4d4de (patch) | |
tree | c26f5cb5677abc3b2cd7c104e56d3b1454736c6c /test/functional/projects_controller_test.rb | |
parent | 5d2eea14893b509f0f9044a53270bd84b4e06acb (diff) | |
download | redmine-fd4a91130465f6b5ae4fc937da13e8674ee4d4de.tar.gz redmine-fd4a91130465f6b5ae4fc937da13e8674ee4d4de.zip |
Fixed that project copy triggers a 500 error if project validation fails.
git-svn-id: http://svn.redmine.org/redmine/trunk@13848 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r-- | test/functional/projects_controller_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 42c6ff747..8e209002d 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -608,6 +608,13 @@ class ProjectsControllerTest < ActionController::TestCase assert_redirected_to :controller => 'projects', :action => 'settings', :id => 'unique-copy' end + def test_post_copy_with_failure + @request.session[:user_id] = 1 + post :copy, :id => 1, :project => {:name => 'Copy', :identifier => ''} + assert_response :success + assert_template 'copy' + end + def test_jump_should_redirect_to_active_tab get :show, :id => 1, :jump => 'issues' assert_redirected_to '/projects/ecookbook/issues' |