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:
parent
a313d540a6
commit
378a3e684f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue