Fixes assertions (#8836).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6302 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
18103cafbc
commit
ed23149a6c
|
@ -293,10 +293,10 @@ class IssueTest < ActiveSupport::TestCase
|
|||
assert_equal [1, 2], issue.new_statuses_allowed_to(user).map(&:id)
|
||||
|
||||
issue = Issue.generate!(:tracker => tracker, :status => status, :project_id => 1, :author => user)
|
||||
assert_equal [1, 2, 3], issue.new_statuses_allowed_to(user).map(&:id)
|
||||
assert_equal [1, 2, 3, 5], issue.new_statuses_allowed_to(user).map(&:id)
|
||||
|
||||
issue = Issue.generate!(:tracker => tracker, :status => status, :project_id => 1, :assigned_to => user)
|
||||
assert_equal [1, 2, 4], issue.new_statuses_allowed_to(user).map(&:id)
|
||||
assert_equal [1, 2, 4, 5], issue.new_statuses_allowed_to(user).map(&:id)
|
||||
|
||||
issue = Issue.generate!(:tracker => tracker, :status => status, :project_id => 1, :author => user, :assigned_to => user)
|
||||
assert_equal [1, 2, 3, 4, 5], issue.new_statuses_allowed_to(user).map(&:id)
|
||||
|
|
Loading…
Reference in New Issue