From: Toshi MARUYAMA Date: Mon, 14 Mar 2011 11:03:34 +0000 (+0000) Subject: scm: mercurial: add latest changesets improvement test in functional test. X-Git-Tag: 1.2.0~719 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=29c1aadbb558becbe0d2edab318251ab0fd12592;p=redmine.git scm: mercurial: add latest changesets improvement test in functional test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5124 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb index b8bc7c2f7..3aa2bd797 100644 --- a/test/functional/repositories_mercurial_controller_test.rb +++ b/test/functional/repositories_mercurial_controller_test.rb @@ -124,11 +124,9 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase assert_not_nil assigns(:entries) assert_equal ['percent%file1.txt', 'percentfile1.txt'], assigns(:entries).collect(&:name) changesets = assigns(:changesets) + assert_not_nil changesets assigns(:changesets).size > 0 - - ## This is not yet implemented. - # assert_not_nil changesets - # assert_equal %w(13 11 10 9), changesets.collect(&:revision) + assert_equal %w(13 11 10 9), changesets.collect(&:revision) end end