]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated Relation#first with finder options at RepositoriesGitContr...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jan 2014 10:13:37 +0000 (10:13 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jan 2014 10:13:37 +0000 (10:13 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12641 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_git_controller_test.rb

index dd25b3736bda16d80478f5e88efabcd92aefcd39..14af10a0b6d094148e01e16dcaa6ac697c5c7f41 100644 (file)
@@ -71,7 +71,7 @@ class RepositoriesGitControllerTest < ActionController::TestCase
                      }
     end
     assert_response 302
-    repository = Repository.first(:order => 'id DESC')
+    repository = Repository.order('id DESC').first
     assert_kind_of Repository::Git, repository
     assert_equal '/test', repository.url
     assert_equal true, repository.extra_report_last_commit