1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 19:47:14 +00:00

Add test for #39894.

git-svn-id: https://svn.redmine.org/redmine/trunk@22539 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2023-12-21 06:54:28 +00:00
parent 539d0f867e
commit bf39d87c81

View File

@ -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