From: Toshi MARUYAMA Date: Sun, 10 Jul 2011 13:11:16 +0000 (+0000) Subject: scm: mercurial: add missing "assert" changesets size at functional test. X-Git-Tag: 1.3.0~1700 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7f9f295b4e3560ef2f6cdf3a7a88192734325f7a;p=redmine.git scm: mercurial: add missing "assert" changesets size at functional test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6223 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb index 8322983d2..47c7e9404 100644 --- a/test/functional/repositories_mercurial_controller_test.rb +++ b/test/functional/repositories_mercurial_controller_test.rb @@ -74,7 +74,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase assert assigns(:entries).detect {|e| e.name == 'sources' && e.kind == 'dir'} assert assigns(:entries).detect {|e| e.name == 'README' && e.kind == 'file'} assert_not_nil assigns(:changesets) - assigns(:changesets).size > 0 + assert assigns(:changesets).size > 0 end def test_show_directory @@ -90,7 +90,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase assert_equal 'file', entry.kind assert_equal 'images/edit.png', entry.path assert_not_nil assigns(:changesets) - assigns(:changesets).size > 0 + assert assigns(:changesets).size > 0 end def test_show_at_given_revision @@ -103,7 +103,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase assert_not_nil assigns(:entries) assert_equal ['delete.png'], assigns(:entries).collect(&:name) assert_not_nil assigns(:changesets) - assigns(:changesets).size > 0 + assert assigns(:changesets).size > 0 end end @@ -121,7 +121,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase assigns(:entries).collect(&:name) changesets = assigns(:changesets) assert_not_nil changesets - assigns(:changesets).size > 0 + assert assigns(:changesets).size > 0 assert_equal %w(13 11 10 9), changesets.collect(&:revision) end end @@ -162,7 +162,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase assert_not_nil assigns(:entries) assert assigns(:entries).size > 0 assert_not_nil assigns(:changesets) - assigns(:changesets).size > 0 + assert assigns(:changesets).size > 0 end end @@ -180,7 +180,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase assert_not_nil assigns(:entries) assert assigns(:entries).size > 0 assert_not_nil assigns(:changesets) - assigns(:changesets).size > 0 + assert assigns(:changesets).size > 0 end end