From c8ec7820db6b2ee292fa5ed0dcd6f2be987efa69 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 10 Jul 2011 13:10:48 +0000 Subject: [PATCH] scm: git: add missing "assert" changesets and entries size at functional test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6222 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/repositories_git_controller_test.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index 0ea9a6621..bbe219d9c 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -79,7 +79,7 @@ class RepositoriesGitControllerTest < ActionController::TestCase assert assigns(:entries).detect {|e| e.name == 'filemane with spaces.txt' && e.kind == 'file'} assert assigns(:entries).detect {|e| e.name == ' filename with a leading space.txt ' && e.kind == 'file'} assert_not_nil assigns(:changesets) - assigns(:changesets).size > 0 + assert assigns(:changesets).size > 0 end def test_browse_branch @@ -95,7 +95,7 @@ class RepositoriesGitControllerTest < ActionController::TestCase assert assigns(:entries).detect {|e| e.name == 'README' && e.kind == 'file'} assert assigns(:entries).detect {|e| e.name == 'test.txt' && e.kind == 'file'} assert_not_nil assigns(:changesets) - assigns(:changesets).size > 0 + assert assigns(:changesets).size > 0 end def test_browse_tag @@ -109,9 +109,9 @@ class RepositoriesGitControllerTest < ActionController::TestCase assert_response :success assert_template 'show' assert_not_nil assigns(:entries) - assigns(:entries).size > 0 + assert assigns(:entries).size > 0 assert_not_nil assigns(:changesets) - assigns(:changesets).size > 0 + assert assigns(:changesets).size > 0 end end @@ -128,7 +128,7 @@ class RepositoriesGitControllerTest < 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_browse_at_given_revision @@ -141,7 +141,7 @@ class RepositoriesGitControllerTest < 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 def test_changes -- 2.39.5