mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
Fix random test failure in IssueTest due to unsorted expected_statuses (#41951).
Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23370 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
40e32861c7
commit
e6f8fe77cb
@ -889,7 +889,7 @@ class IssueTest < ActiveSupport::TestCase
|
||||
WorkflowTransition.create!(:role_id => 2, :tracker_id => 1, :old_status_id => 1, :new_status_id => 3)
|
||||
|
||||
# status 3 is not displayed
|
||||
expected_statuses = IssueStatus.where(:id => [1, 2])
|
||||
expected_statuses = IssueStatus.where(:id => [1, 2]).order(:id)
|
||||
|
||||
admin = User.find(1)
|
||||
assert_equal expected_statuses, issue.new_statuses_allowed_to(admin)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user