mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +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:
@@ -47,13 +47,14 @@ class RoleTest < ActiveSupport::TestCase
|
||||
|
||||
def test_copy_workflows
|
||||
source = Role.find(1)
|
||||
assert_equal 90, source.workflow_rules.size
|
||||
rule_count = source.workflow_rules.count
|
||||
assert rule_count > 0
|
||||
|
||||
target = Role.new(:name => 'Target')
|
||||
assert target.save
|
||||
target.workflow_rules.copy(source)
|
||||
target.reload
|
||||
assert_equal 90, target.workflow_rules.size
|
||||
assert_equal rule_count, target.workflow_rules.size
|
||||
end
|
||||
|
||||
def test_permissions_should_be_unserialized_with_its_coder
|
||||
|
||||
Reference in New Issue
Block a user