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
This commit is contained in:
parent
309e588440
commit
abd6471270
|
@ -71,7 +71,7 @@ class RepositoriesGitControllerTest < ActionController::TestCase
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
assert_response 302
|
assert_response 302
|
||||||
repository = Repository.first(:order => 'id DESC')
|
repository = Repository.order('id DESC').first
|
||||||
assert_kind_of Repository::Git, repository
|
assert_kind_of Repository::Git, repository
|
||||||
assert_equal '/test', repository.url
|
assert_equal '/test', repository.url
|
||||||
assert_equal true, repository.extra_report_last_commit
|
assert_equal true, repository.extra_report_last_commit
|
||||||
|
|
Loading…
Reference in New Issue