diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-02 12:50:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-02 12:50:45 +0000 |
commit | 0f29e265fcf1ac2ccba26be51e2866903c0db0b5 (patch) | |
tree | 726433b3e87ede1f55cb9c851b9e26d5d6c3b09e /test/object_helpers.rb | |
parent | 137aa1cf6636ad2ae3d42eb554bfac377f0cac6d (diff) | |
download | redmine-0f29e265fcf1ac2ccba26be51e2866903c0db0b5.tar.gz redmine-0f29e265fcf1ac2ccba26be51e2866903c0db0b5.zip |
Optionaly inherit members from parent project (#5605).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11298 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/object_helpers.rb')
-rw-r--r-- | test/object_helpers.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/object_helpers.rb b/test/object_helpers.rb index 4b5fbdbbe..335828de5 100644 --- a/test/object_helpers.rb +++ b/test/object_helpers.rb @@ -39,6 +39,12 @@ module ObjectHelpers project end + def Project.generate_with_parent!(parent, attributes={}) + project = Project.generate!(attributes) + project.set_parent!(parent) + project + end + def Tracker.generate!(attributes={}) @generated_tracker_name ||= 'Tracker 0' @generated_tracker_name.succ! |