Rails4: replace deprecated Relation#first with finder options at AttachmentsControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12578 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d852b8a4e6
commit
7c10f41ce3
|
@ -339,7 +339,7 @@ class AttachmentsControllerTest < ActionController::TestCase
|
|||
end
|
||||
end
|
||||
assert_nil Attachment.find_by_id(1)
|
||||
j = Journal.first(:order => 'id DESC')
|
||||
j = Journal.order('id DESC').first
|
||||
assert_equal issue, j.journalized
|
||||
assert_equal 'attachment', j.details.first.property
|
||||
assert_equal '1', j.details.first.prop_key
|
||||
|
|
Loading…
Reference in New Issue