diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-10 12:24:19 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-10 12:24:19 +0000 |
commit | 9420d7e34557130c7df7c89b078e8ab1ddde9c79 (patch) | |
tree | d72f10588fc9cc91082105c1af83f66d88fcbd78 /test/integration/api_test/versions_test.rb | |
parent | 7a4e325b36c98abef8d8c5e0ea83fb9ecb5b6939 (diff) | |
download | redmine-9420d7e34557130c7df7c89b078e8ab1ddde9c79.tar.gz redmine-9420d7e34557130c7df7c89b078e8ab1ddde9c79.zip |
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
Diffstat (limited to 'test/integration/api_test/versions_test.rb')
-rw-r--r-- | test/integration/api_test/versions_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/api_test/versions_test.rb b/test/integration/api_test/versions_test.rb index 782ad4c8b..e99d98e94 100644 --- a/test/integration/api_test/versions_test.rb +++ b/test/integration/api_test/versions_test.rb @@ -92,7 +92,7 @@ class Redmine::ApiTest::VersionsTest < Redmine::ApiTest::Base }, credentials('jsmith') end - version = Version.first(:order => 'id DESC') + version = Version.order('id DESC').first assert_equal 'API test', version.name assert_equal 'Some value', version.custom_field_value(field) |