mirror of
https://github.com/redmine/redmine.git
synced 2026-01-26 17:30:00 +01:00
Rails4: replace deprecated Relation#first with finder options at WikiControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12635 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -953,7 +953,7 @@ class WikiControllerTest < ActionController::TestCase
|
||||
'description' => 'test file'}
|
||||
}
|
||||
end
|
||||
attachment = Attachment.first(:order => 'id DESC')
|
||||
attachment = Attachment.order('id DESC').first
|
||||
assert_equal Wiki.find(1).find_page('CookBook_documentation'), attachment.container
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user