Adds an optional description to attachments.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1180 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -300,7 +300,7 @@ class IssuesControllerTest < Test::Unit::TestCase
|
||||
post :edit,
|
||||
:id => 1,
|
||||
:notes => '',
|
||||
:attachments => [ test_uploaded_file('testfile.txt', 'text/plain') ]
|
||||
:attachments => {'1' => {'file' => test_uploaded_file('testfile.txt', 'text/plain')}}
|
||||
assert_redirected_to 'issues/show/1'
|
||||
j = Issue.find(1).journals.find(:first, :order => 'id DESC')
|
||||
assert j.notes.blank?
|
||||
|
||||
Reference in New Issue
Block a user