summaryrefslogtreecommitdiffstats
path: root/test/object_helpers.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-05-18 09:27:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-05-18 09:27:48 +0000
commit61dfab12fd72aa3546746a8354476a9572e0bf23 (patch)
tree34144ee44e11a58c360a00f07dd32e36846c6d95 /test/object_helpers.rb
parent474c01074638e46c505dc826c0d631980093f145 (diff)
downloadredmine-61dfab12fd72aa3546746a8354476a9572e0bf23.tar.gz
redmine-61dfab12fd72aa3546746a8354476a9572e0bf23.zip
Removed some shoulda context.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11865 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/object_helpers.rb')
-rw-r--r--test/object_helpers.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/object_helpers.rb b/test/object_helpers.rb
index 2f29793f2..dd68fbc8a 100644
--- a/test/object_helpers.rb
+++ b/test/object_helpers.rb
@@ -99,6 +99,7 @@ module ObjectHelpers
@generated_version_name.succ!
version = Version.new(attributes)
version.name = @generated_version_name.dup if version.name.blank?
+ version.project ||= Project.find(1)
yield version if block_given?
version.save!
version