mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-01 05:09:40 +00:00
Adds a test for #30001.
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17659 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4f8b039ef6
commit
0fac1a5440
@ -217,4 +217,16 @@ class IssueImportTest < ActiveSupport::TestCase
|
||||
import.run
|
||||
assert !File.exists?(file_path)
|
||||
end
|
||||
|
||||
def test_run_should_consider_project_shared_versions
|
||||
system_version = Version.generate!(:project_id => 2, :sharing => 'system', :name => '2.1')
|
||||
system_version.save!
|
||||
|
||||
import = generate_import_with_mapping
|
||||
import.mapping.merge!('fixed_version' => '9')
|
||||
import.save!
|
||||
|
||||
issues = new_records(Issue, 3) { import.run }
|
||||
assert [nil, 3, system_version.id], issues.map(&:fixed_version_id)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user