mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
use with_settings at MailHandlerControllerTest#test_should_update_issue
git-svn-id: http://svn.redmine.org/redmine/trunk@20517 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b81577a08d
commit
6d4414b1cb
@ -81,8 +81,10 @@ class MailHandlerControllerTest < Redmine::ControllerTest
|
||||
|
||||
def test_should_update_issue
|
||||
# Enable API and set a key
|
||||
Setting.mail_handler_api_enabled = 1
|
||||
Setting.mail_handler_api_key = 'secret'
|
||||
with_settings(
|
||||
:mail_handler_api_enabled => 1,
|
||||
:mail_handler_api_key => 'secret'
|
||||
) do
|
||||
assert_no_difference 'Issue.count' do
|
||||
assert_difference 'Journal.count' do
|
||||
post(
|
||||
@ -94,6 +96,7 @@ class MailHandlerControllerTest < Redmine::ControllerTest
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
assert_response 201
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user