mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 01:56:12 +02:00
Use same logic for finding user when importing a file (#950).
git-svn-id: http://svn.redmine.org/redmine/trunk@14501 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -69,6 +69,15 @@ class IssueImportTest < ActiveSupport::TestCase
|
||||
assert_equal 2, issues[2].parent_id
|
||||
end
|
||||
|
||||
def test_assignee_should_be_set
|
||||
import = generate_import_with_mapping
|
||||
import.mapping.merge!('assigned_to' => '11')
|
||||
import.save!
|
||||
|
||||
issues = new_records(Issue, 3) { import.run }
|
||||
assert_equal [User.find(3), nil, nil], issues.map(&:assigned_to)
|
||||
end
|
||||
|
||||
def test_is_private_should_be_set_based_on_user_locale
|
||||
import = generate_import_with_mapping
|
||||
import.mapping.merge!('is_private' => '6')
|
||||
|
||||
Reference in New Issue
Block a user