Project

General

Profile

Patch #41951 ยป fix-test-failue-in-issue-test.diff

Go MAEDA, 2024-12-09 01:40

View differences:

test/unit/issue_test.rb
889 889
    WorkflowTransition.create!(:role_id => 2, :tracker_id => 1, :old_status_id => 1, :new_status_id => 3)
890 890

  
891 891
    # status 3 is not displayed
892
    expected_statuses = IssueStatus.where(:id => [1, 2])
892
    expected_statuses = IssueStatus.where(:id => [1, 2]).order(:id)
893 893

  
894 894
    admin = User.find(1)
895 895
    assert_equal expected_statuses, issue.new_statuses_allowed_to(admin)
    (1-1/1)