summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-12-21 06:54:28 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-12-21 06:54:28 +0000
commitbf39d87c815d35c51238bd2cc766fb0717233782 (patch)
treeb12866b958826805ce1012ee0facf459867e8c36 /test
parent539d0f867e3b6f4b9a2b419cd8c70b6329fb9a44 (diff)
downloadredmine-bf39d87c815d35c51238bd2cc766fb0717233782.tar.gz
redmine-bf39d87c815d35c51238bd2cc766fb0717233782.zip
Add test for #39894.
git-svn-id: https://svn.redmine.org/redmine/trunk@22539 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/watchers_controller_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/watchers_controller_test.rb b/test/functional/watchers_controller_test.rb
index 239a0418c..30662480d 100644
--- a/test/functional/watchers_controller_test.rb
+++ b/test/functional/watchers_controller_test.rb
@@ -156,6 +156,12 @@ class WatchersControllerTest < Redmine::ControllerTest
assert_match /ajax-modal/, response.body
end
+ def test_new_as_html_should_respond_with_404
+ @request.session[:user_id] = 2
+ get :new, :params => {:object_type => 'issue', :object_id => '2'}
+ assert_response 404
+ end
+
def test_new_for_message
@request.session[:user_id] = 2
get :new, :params => {:object_type => 'message', :object_id => '1'}, :xhr => true