Use fixture.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8983 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d04b4aafb6
commit
4a6de486ba
|
@ -178,7 +178,7 @@ class AttachmentTest < ActiveSupport::TestCase
|
||||||
should "add unsaved files to the object as unsaved attachments" do
|
should "add unsaved files to the object as unsaved attachments" do
|
||||||
# Max size of 0 to force Attachment creation failures
|
# Max size of 0 to force Attachment creation failures
|
||||||
with_settings(:attachment_max_size => 0) do
|
with_settings(:attachment_max_size => 0) do
|
||||||
@project = Project.generate!
|
@project = Project.find(1)
|
||||||
response = Attachment.attach_files(@project, {
|
response = Attachment.attach_files(@project, {
|
||||||
'1' => {'file' => mock_file, 'description' => 'test'},
|
'1' => {'file' => mock_file, 'description' => 'test'},
|
||||||
'2' => {'file' => mock_file, 'description' => 'test'}
|
'2' => {'file' => mock_file, 'description' => 'test'}
|
||||||
|
|
Loading…
Reference in New Issue