diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-11 10:13:37 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-11 10:13:37 +0000 |
commit | abd6471270f02f50f1e9ae9240a604437309e47f (patch) | |
tree | 8ea5d7729b961b2d5135c50659ce7b53acaf3333 /test | |
parent | 309e588440f0e26a057ae82cbe867d0e5333d1c2 (diff) | |
download | redmine-abd6471270f02f50f1e9ae9240a604437309e47f.tar.gz redmine-abd6471270f02f50f1e9ae9240a604437309e47f.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/repositories_git_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |