]> source.dussan.org Git - redmine.git/commitdiff
Fixed order syntax for Rails 3 (#18667).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 26 Dec 2014 11:46:34 +0000 (11:46 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 26 Dec 2014 11:46:34 +0000 (11:46 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@13810 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/attachments_test.rb

index b9fde370ac31e58f925715a00eae95d69668e445..9ed10bfcf62a2807ad29012a4bf20094706a9a32 100644 (file)
@@ -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