0002-Add-test-for-issue-relations-to-following-rows.patch

Gregor Schmidt, 2016-05-02 14:52

Download (1.19 KB)

View differences:

test/unit/issue_import_test.rb
65 65

  
66 66
    issues = new_records(Issue, 5) { import.run }
67 67
    assert_nil issues[0].parent
68
    assert_equal issues[0].id, issues[1].parent_id
69
    assert_equal 2, issues[2].parent_id
68
    assert_equal issues[0].id, issues[1].parent_id, "parent relation refering to previous line should be set"
69
    assert_equal            2, issues[2].parent_id, "parent relation refering to existing issue should be set"
70
    assert_equal issues[4].id, issues[3].parent_id, "parent relation refering to following line should be set"
70 71
  end
71 72

  
72 73
  def test_assignee_should_be_set
73
-