mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 22:05:56 +01:00
Makes new issue initial status settable in workflow (#5816).
git-svn-id: http://svn.redmine.org/redmine/trunk@14458 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -30,13 +30,14 @@ class TrackerTest < ActiveSupport::TestCase
|
||||
|
||||
def test_copy_workflows
|
||||
source = Tracker.find(1)
|
||||
assert_equal 89, source.workflow_rules.size
|
||||
rules_count = source.workflow_rules.count
|
||||
assert rules_count > 0
|
||||
|
||||
target = Tracker.new(:name => 'Target', :default_status_id => 1)
|
||||
assert target.save
|
||||
target.workflow_rules.copy(source)
|
||||
target.reload
|
||||
assert_equal 89, target.workflow_rules.size
|
||||
assert_equal rules_count, target.workflow_rules.size
|
||||
end
|
||||
|
||||
def test_issue_statuses
|
||||
|
||||
Reference in New Issue
Block a user