summaryrefslogtreecommitdiffstats
path: root/test/functional/mail_handler_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/mail_handler_controller_test.rb')
-rw-r--r--test/functional/mail_handler_controller_test.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/functional/mail_handler_controller_test.rb b/test/functional/mail_handler_controller_test.rb
index a966b774d..465b29c39 100644
--- a/test/functional/mail_handler_controller_test.rb
+++ b/test/functional/mail_handler_controller_test.rb
@@ -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