diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-07-26 08:30:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-07-26 08:30:19 +0000 |
commit | 2bc5b60f9de7c533b33348213f6ddac37dc9cdb3 (patch) | |
tree | 803c2d2ece43283b231b59ede3636c9fc2d3828a /test/unit/tracker_test.rb | |
parent | fdecb2a17b450c4524856b0286c2ec27ef113ea6 (diff) | |
download | redmine-2bc5b60f9de7c533b33348213f6ddac37dc9cdb3.tar.gz redmine-2bc5b60f9de7c533b33348213f6ddac37dc9cdb3.zip |
Makes new issue initial status settable in workflow (#5816).
git-svn-id: http://svn.redmine.org/redmine/trunk@14458 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/tracker_test.rb')
-rw-r--r-- | test/unit/tracker_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/tracker_test.rb b/test/unit/tracker_test.rb index d9a445133..f766a3ab4 100644 --- a/test/unit/tracker_test.rb +++ b/test/unit/tracker_test.rb @@ -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 |