##// END OF EJS Templates
Use fixture....
Jean-Philippe Lang -
r8863:4a6de486bae6
parent child
Show More
@@ -178,7 +178,7 class AttachmentTest < ActiveSupport::TestCase
178 should "add unsaved files to the object as unsaved attachments" do
178 should "add unsaved files to the object as unsaved attachments" do
179 # Max size of 0 to force Attachment creation failures
179 # Max size of 0 to force Attachment creation failures
180 with_settings(:attachment_max_size => 0) do
180 with_settings(:attachment_max_size => 0) do
181 @project = Project.generate!
181 @project = Project.find(1)
182 response = Attachment.attach_files(@project, {
182 response = Attachment.attach_files(@project, {
183 '1' => {'file' => mock_file, 'description' => 'test'},
183 '1' => {'file' => mock_file, 'description' => 'test'},
184 '2' => {'file' => mock_file, 'description' => 'test'}
184 '2' => {'file' => mock_file, 'description' => 'test'}
General Comments 0
You need to be logged in to leave comments. Login now