GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit 863543b6 authored by maeda's avatar maeda

Test for r17914 (#17699).

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent e1037ef7
......@@ -1193,6 +1193,20 @@ class MailHandlerTest < ActiveSupport::TestCase
assert_equal str2, user.lastname
def test_new_user_with_fullname_in_parentheses
assert_difference 'User.count' do
issue = submit_email(
:issue => {:project => 'ecookbook'},
:unknown_user => 'create'
user = User.order('id DESC').first
assert_equal "", user.mail
assert_equal 'John', user.firstname
assert_equal 'Doe', user.lastname
def test_extract_options_from_env_should_return_options
options = MailHandler.extract_options_from_env({
'tracker' => 'defect',
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment