Rails4: replace deprecated Relation#first with finder options at ApiTest::VersionsTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12611 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7a4e325b36
commit
9420d7e345
|
@ -92,7 +92,7 @@ class Redmine::ApiTest::VersionsTest < Redmine::ApiTest::Base
|
||||||
}, credentials('jsmith')
|
}, credentials('jsmith')
|
||||||
end
|
end
|
||||||
|
|
||||||
version = Version.first(:order => 'id DESC')
|
version = Version.order('id DESC').first
|
||||||
assert_equal 'API test', version.name
|
assert_equal 'API test', version.name
|
||||||
assert_equal 'Some value', version.custom_field_value(field)
|
assert_equal 'Some value', version.custom_field_value(field)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue