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