Use fixture.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8983 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-02-24 21:24:00 +00:00
parent d04b4aafb6
commit 4a6de486ba
1 changed files with 1 additions and 1 deletions

View File

@ -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'}