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
This commit is contained in:
Jean-Philippe Lang
2014-12-26 11:46:34 +00:00
parent 4da6874d05
commit 049db4923c

View 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