]> source.dussan.org Git - redmine.git/commitdiff
Use fixture.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 24 Feb 2012 21:24:00 +0000 (21:24 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 24 Feb 2012 21:24:00 +0000 (21:24 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8983 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/attachment_test.rb

index ecee774a6b4441aaf270022bbc644d8de5779a26..9238a10c79515ac19f950d2d0eba2a5d4f2558c2 100644 (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'}