mirror of
https://github.com/redmine/redmine.git
synced 2025-11-04 20:35:57 +01:00
Adds a form to manually submit an email to the mail handler.
Use GET /mail_handler?key= to get the form. git-svn-id: http://svn.redmine.org/redmine/trunk@14314 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -77,7 +77,6 @@ class MailHandlerControllerTest < ActionController::TestCase
|
||||
end
|
||||
|
||||
def test_should_not_allow_with_wrong_key
|
||||
# Disable API
|
||||
Setting.mail_handler_api_enabled = 1
|
||||
Setting.mail_handler_api_key = 'secret'
|
||||
|
||||
@@ -86,4 +85,12 @@ class MailHandlerControllerTest < ActionController::TestCase
|
||||
end
|
||||
assert_response 403
|
||||
end
|
||||
|
||||
def test_new
|
||||
Setting.mail_handler_api_enabled = 1
|
||||
Setting.mail_handler_api_key = 'secret'
|
||||
|
||||
get :new, :key => 'secret'
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user