mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 22:05:56 +01:00
use with_settings at MailHandlerControllerTest#test_new
git-svn-id: http://svn.redmine.org/redmine/trunk@20599 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -162,9 +162,12 @@ class MailHandlerControllerTest < Redmine::ControllerTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_new
|
def test_new
|
||||||
Setting.mail_handler_api_enabled = 1
|
with_settings(
|
||||||
Setting.mail_handler_api_key = 'secret'
|
:mail_handler_api_enabled => 1,
|
||||||
|
:mail_handler_api_key => 'secret'
|
||||||
|
) do
|
||||||
get(:new, :params => {:key => 'secret'})
|
get(:new, :params => {:key => 'secret'})
|
||||||
|
end
|
||||||
assert_response :success
|
assert_response :success
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user