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
This commit is contained in:
Toshi MARUYAMA 2014-01-11 10:13:37 +00:00
parent 309e588440
commit abd6471270
1 changed files with 1 additions and 1 deletions

View 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