From abd6471270f02f50f1e9ae9240a604437309e47f Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 11 Jan 2014 10:13:37 +0000 Subject: [PATCH] Rails4: replace deprecated Relation#first with finder options at RepositoriesGitControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@12641 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/repositories_git_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index dd25b3736..14af10a0b 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -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