mirror of
https://github.com/redmine/redmine.git
synced 2026-03-24 05:10:44 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user