diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-10 13:11:16 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-10 13:11:16 +0000 |
commit | 7f9f295b4e3560ef2f6cdf3a7a88192734325f7a (patch) | |
tree | 9adf0f8e442e4b70cbfb0b83a521f1fcb06f3c96 /test/functional/repositories_mercurial_controller_test.rb | |
parent | c8ec7820db6b2ee292fa5ed0dcd6f2be987efa69 (diff) | |
download | redmine-7f9f295b4e3560ef2f6cdf3a7a88192734325f7a.tar.gz redmine-7f9f295b4e3560ef2f6cdf3a7a88192734325f7a.zip |
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
Diffstat (limited to 'test/functional/repositories_mercurial_controller_test.rb')
-rw-r--r-- | test/functional/repositories_mercurial_controller_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
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 |