@@ -102,8 +102,8 class NewsControllerTest < ActionController::TestCase | |||
|
102 | 102 | :attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain')}} |
|
103 | 103 | end |
|
104 | 104 | end |
|
105 |
attachment = Attachment. |
|
|
106 |
news = News. |
|
|
105 | attachment = Attachment.order('id DESC').first | |
|
106 | news = News.order('id DESC').first | |
|
107 | 107 | assert_equal news, attachment.container |
|
108 | 108 | end |
|
109 | 109 |
General Comments 0
You need to be logged in to leave comments.
Login now