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

test/functional/repositories_controller_test.rb

index 18558cde1309e5ca221958a5b9f8d6fd261bbff8..6cfa5c0e2bcfb0dd97d6ab6bed4a2a34989e72a2 100644 (file)
@@ -60,7 +60,7 @@ class RepositoriesControllerTest < ActionController::TestCase
            :repository => {:url => 'file:///test', :is_default => '1', :identifier => ''}
     end
     assert_response 302
-    repository = Repository.first(:order => 'id DESC')
+    repository = Repository.order('id DESC').first
     assert_kind_of Repository::Subversion, repository
     assert_equal 'file:///test', repository.url
   end