Project

General

Profile

Defect #30001 » test_for_30001.patch

Marius BĂLTEANU, 2018-11-25 18:44

View differences:

test/unit/issue_import_test.rb
217 217
    import.run
218 218
    assert !File.exists?(file_path)
219 219
  end
220

  
221
  def test_run_should_consider_project_shared_versions
222
    system_version = Version.generate!(:project_id => 2, :sharing => 'system', :name => '2.1')
223
    system_version.save!
224

  
225
    import = generate_import_with_mapping
226
    import.mapping.merge!('fixed_version' => '9')
227
    import.save!
228

  
229
    issues = new_records(Issue, 3) { import.run }
230
    assert [nil, 3, system_version.id], issues.map(&:fixed_version_id)
231
  end
220 232
end
(2-2/2)