From 049db4923c9a64cb882dd91ef5f5c14d2663571c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 26 Dec 2014 11:46:34 +0000 Subject: [PATCH] Fixed order syntax for Rails 3 (#18667). git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@13810 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/attachments_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/attachments_test.rb b/test/integration/attachments_test.rb index b9fde370a..9ed10bfcf 100644 --- a/test/integration/attachments_test.rb +++ b/test/integration/attachments_test.rb @@ -29,7 +29,7 @@ class AttachmentsTest < ActionController::IntegrationTest post "/uploads.js?attachment_id=1&filename=foo.txt", "File content", {"CONTENT_TYPE" => 'application/octet-stream'} assert_response :success end - attachment = Attachment.order(:id => :desc).first + attachment = Attachment.order('id DESC').first assert_equal 'text/plain', attachment.content_type end