Workflow enhancement: editable and required fields configurable by role, tracker and status (#703, #3521).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9977 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-07-15 14:12:17 +00:00
parent 54d55a360a
commit d7b669e50b
35 changed files with 1405 additions and 431 deletions
+3 -3
View File
@@ -35,13 +35,13 @@ class RoleTest < ActiveSupport::TestCase
def test_copy_workflows
source = Role.find(1)
assert_equal 90, source.workflows.size
assert_equal 90, source.workflow_rules.size
target = Role.new(:name => 'Target')
assert target.save
target.workflows.copy(source)
target.workflow_rules.copy(source)
target.reload
assert_equal 90, target.workflows.size
assert_equal 90, target.workflow_rules.size
end
def test_permissions_should_be_unserialized_with_its_coder