summaryrefslogtreecommitdiffstats
path: root/test/unit/attachment_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-24 21:24:00 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-24 21:24:00 +0000
commit4a6de486bae6ce8f44766aa8a4627084b7dd467f (patch)
treed474231a64ed9884ba48a673e00acb979f031776 /test/unit/attachment_test.rb
parentd04b4aafb642f4570679785f7e36cf68e85aab9b (diff)
downloadredmine-4a6de486bae6ce8f44766aa8a4627084b7dd467f.tar.gz
redmine-4a6de486bae6ce8f44766aa8a4627084b7dd467f.zip
Use fixture.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8983 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/attachment_test.rb')
-rw-r--r--test/unit/attachment_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb
index ecee774a6..9238a10c7 100644
--- a/test/unit/attachment_test.rb
+++ b/test/unit/attachment_test.rb
@@ -178,7 +178,7 @@ class AttachmentTest < ActiveSupport::TestCase
should "add unsaved files to the object as unsaved attachments" do
# Max size of 0 to force Attachment creation failures
with_settings(:attachment_max_size => 0) do
- @project = Project.generate!
+ @project = Project.find(1)
response = Attachment.attach_files(@project, {
'1' => {'file' => mock_file, 'description' => 'test'},
'2' => {'file' => mock_file, 'description' => 'test'}