summaryrefslogtreecommitdiffstats
path: root/test/object_helpers.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-25 09:53:05 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-05-25 09:53:05 +0000
commit0ad09e3aef86d4e6c6784d5d906bfa6d1767757f (patch)
treec626a05d630f6529294dbf6a8065f17a235f3256 /test/object_helpers.rb
parent09b935b44ed897afc3f0abcc614558bf6356b6ba (diff)
downloadredmine-0ad09e3aef86d4e6c6784d5d906bfa6d1767757f.tar.gz
redmine-0ad09e3aef86d4e6c6784d5d906bfa6d1767757f.zip
Adds settings to control start/due dates and priority on parent tasks (#5490).
git-svn-id: http://svn.redmine.org/redmine/trunk@14269 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/object_helpers.rb')
-rw-r--r--test/object_helpers.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/object_helpers.rb b/test/object_helpers.rb
index 2b1fa2f61..7061e75c1 100644
--- a/test/object_helpers.rb
+++ b/test/object_helpers.rb
@@ -105,6 +105,12 @@ module ObjectHelpers
issue.reload
end
+ def Issue.generate_with_child!(attributes={})
+ issue = Issue.generate!(attributes)
+ Issue.generate!(:parent_issue_id => issue.id)
+ issue.reload
+ end
+
def Journal.generate!(attributes={})
journal = Journal.new(attributes)
journal.user ||= User.first