diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-12-09 14:12:46 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-12-09 14:12:46 +0000 |
commit | 461fe8304fad30042a6a42c0d451ee9651dc62c8 (patch) | |
tree | 72984291c6fc6292e5715d1dee8477e51d1570fc | |
parent | 287a4f9e1c19a0114f18254fc85b789f49393472 (diff) | |
download | redmine-461fe8304fad30042a6a42c0d451ee9651dc62c8.tar.gz redmine-461fe8304fad30042a6a42c0d451ee9651dc62c8.zip |
use with_settings at MailHandlerControllerTest#test_new
git-svn-id: http://svn.redmine.org/redmine/trunk@20599 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/mail_handler_controller_test.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/functional/mail_handler_controller_test.rb b/test/functional/mail_handler_controller_test.rb index 89da9c016..abf2f0182 100644 --- a/test/functional/mail_handler_controller_test.rb +++ b/test/functional/mail_handler_controller_test.rb @@ -162,9 +162,12 @@ class MailHandlerControllerTest < Redmine::ControllerTest end def test_new - Setting.mail_handler_api_enabled = 1 - Setting.mail_handler_api_key = 'secret' - get(:new, :params => {:key => 'secret'}) + with_settings( + :mail_handler_api_enabled => 1, + :mail_handler_api_key => 'secret' + ) do + get(:new, :params => {:key => 'secret'}) + end assert_response :success end end |