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:
parent
b47fc8f618
commit
309e588440
|
@ -60,7 +60,7 @@ class RepositoriesControllerTest < ActionController::TestCase
|
||||||
:repository => {:url => 'file:///test', :is_default => '1', :identifier => ''}
|
:repository => {:url => 'file:///test', :is_default => '1', :identifier => ''}
|
||||||
end
|
end
|
||||||
assert_response 302
|
assert_response 302
|
||||||
repository = Repository.first(:order => 'id DESC')
|
repository = Repository.order('id DESC').first
|
||||||
assert_kind_of Repository::Subversion, repository
|
assert_kind_of Repository::Subversion, repository
|
||||||
assert_equal 'file:///test', repository.url
|
assert_equal 'file:///test', repository.url
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue