@@ -180,7 +180,7 LOREM | |||||
180 | post :add_attachment, :id => 1, |
|
180 | post :add_attachment, :id => 1, | |
181 | :attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain')}} |
|
181 | :attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain')}} | |
182 | end |
|
182 | end | |
183 |
attachment = Attachment. |
|
183 | attachment = Attachment.order('id DESC').first | |
184 | assert_equal Document.find(1), attachment.container |
|
184 | assert_equal Document.find(1), attachment.container | |
185 | end |
|
185 | end | |
186 | end |
|
186 | end |
General Comments 0
You need to be logged in to leave comments.
Login now