summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/functional/news_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/news_controller_test.rb b/test/functional/news_controller_test.rb
index 43ae05a5f..5320cd293 100644
--- a/test/functional/news_controller_test.rb
+++ b/test/functional/news_controller_test.rb
@@ -102,8 +102,8 @@ class NewsControllerTest < ActionController::TestCase
:attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain')}}
end
end
- attachment = Attachment.first(:order => 'id DESC')
- news = News.first(:order => 'id DESC')
+ attachment = Attachment.order('id DESC').first
+ news = News.order('id DESC').first
assert_equal news, attachment.container
end