diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-24 21:24:00 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-24 21:24:00 +0000 |
commit | 4a6de486bae6ce8f44766aa8a4627084b7dd467f (patch) | |
tree | d474231a64ed9884ba48a673e00acb979f031776 /test/unit/attachment_test.rb | |
parent | d04b4aafb642f4570679785f7e36cf68e85aab9b (diff) | |
download | redmine-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.rb | 2 |
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'} |