##// END OF EJS Templates
Additional test for MailHandler....
Jean-Philippe Lang -
r9314:62eb536e32f9
parent child
Show More
@@ -347,6 +347,15 class MailHandlerTest < ActiveSupport::TestCase
347 347 assert_equal 'caaf384198bcbc9563ab5c058acd73cd', attachment.digest
348 348 end
349 349
350 def test_should_ignore_emails_from_locked_users
351 User.find(2).lock!
352
353 MailHandler.any_instance.expects(:dispatch).never
354 assert_no_difference 'Issue.count' do
355 assert_equal false, submit_email('ticket_on_given_project.eml')
356 end
357 end
358
350 359 def test_should_ignore_emails_from_emission_address
351 360 Role.anonymous.add_permission!(:add_issues)
352 361 assert_no_difference 'User.count' do
@@ -360,6 +369,7 class MailHandlerTest < ActiveSupport::TestCase
360 369 end
361 370
362 371 def test_should_ignore_auto_replied_emails
372 MailHandler.any_instance.expects(:dispatch).never
363 373 [
364 374 "X-Auto-Response-Suppress: OOF",
365 375 "Auto-Submitted: auto-replied",
General Comments 0
You need to be logged in to leave comments. Login now