summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-17 20:20:59 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-17 20:20:59 +0000
commitb4cf4fca9d5b5aacd05af33a3be00be213cd893d (patch)
treeda5cdba41755a1d5b6538f179df35fafd0bdb3d3 /test
parent8b994475c482263693e5ec517a5f663680174e20 (diff)
downloadredmine-b4cf4fca9d5b5aacd05af33a3be00be213cd893d.tar.gz
redmine-b4cf4fca9d5b5aacd05af33a3be00be213cd893d.zip
Fixed an error when trying to copy an issue that does not exist.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8670 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/issues_controller_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 13002c296..1273767b4 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -1631,6 +1631,12 @@ class IssuesControllerTest < ActionController::TestCase
assert_tag 'input', :attributes => {:name => 'copy_from', :value => '1'}
end
+ def test_new_as_copy_with_invalid_issue_should_respond_with_404
+ @request.session[:user_id] = 2
+ get :new, :project_id => 1, :copy_from => 99999
+ assert_response 404
+ end
+
def test_create_as_copy_on_different_project
@request.session[:user_id] = 2
assert_difference 'Issue.count' do