@@ -144,7 +144,7 class NewsControllerTest < ActionController::TestCase | |||||
144 | :attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain')}} |
|
144 | :attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain')}} | |
145 | end |
|
145 | end | |
146 | end |
|
146 | end | |
147 |
attachment = Attachment. |
|
147 | attachment = Attachment.order('id DESC').first | |
148 | assert_equal News.find(1), attachment.container |
|
148 | assert_equal News.find(1), attachment.container | |
149 | end |
|
149 | end | |
150 |
|
150 |
General Comments 0
You need to be logged in to leave comments.
Login now