Rails4: replace deprecated Relation#first with finder options at RepositoriesControllerTest

git-svn-id: http://svn.redmine.org/redmine/trunk@12640 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-11 10:13:21 +00:00
parent b47fc8f618
commit 309e588440
1 changed files with 1 additions and 1 deletions

View 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