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