summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-01 17:57:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-01 17:57:30 +0000
commit88d5663ad261a863db7c6985aa3fd22e74b62684 (patch)
tree417e3bf883d06bf82d53121d1872a68ccfeb64da /test/functional
parent16441b4938d3e9ef41fbb3b8b51b5d99e02a56d4 (diff)
downloadredmine-88d5663ad261a863db7c6985aa3fd22e74b62684.tar.gz
redmine-88d5663ad261a863db7c6985aa3fd22e74b62684.zip
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10903 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/projects_controller_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index 49bd69291..b606f4802 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -523,6 +523,12 @@ class ProjectsControllerTest < ActionController::TestCase
:attributes => {:name => 'project[enabled_module_names][]', :value => 'issue_tracking'}
end
+ def test_get_copy_with_invalid_source_should_respond_with_404
+ @request.session[:user_id] = 1
+ get :copy, :id => 99
+ assert_response 404
+ end
+
def test_post_copy_should_copy_requested_items
@request.session[:user_id] = 1 # admin
CustomField.delete_all