From 7296315c9520d8d7475980dfa8ebb40c4a6fdae1 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 21 May 2011 01:10:47 +0000 Subject: [PATCH] scm: filesystem: code clean up unit model test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5862 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/repository_filesystem_test.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/unit/repository_filesystem_test.rb b/test/unit/repository_filesystem_test.rb index b2f8b84ef..03a6edea4 100644 --- a/test/unit/repository_filesystem_test.rb +++ b/test/unit/repository_filesystem_test.rb @@ -26,15 +26,17 @@ class RepositoryFilesystemTest < ActiveSupport::TestCase def setup @project = Project.find(3) Setting.enabled_scm << 'Filesystem' unless Setting.enabled_scm.include?('Filesystem') - assert @repository = Repository::Filesystem.create( - :project => @project, :url => REPOSITORY_PATH) + @repository = Repository::Filesystem.create( + :project => @project, + :url => REPOSITORY_PATH + ) + assert @repository end if File.directory?(REPOSITORY_PATH) def test_fetch_changesets @repository.fetch_changesets @repository.reload - assert_equal 0, @repository.changesets.count assert_equal 0, @repository.changes.count end @@ -47,7 +49,6 @@ class RepositoryFilesystemTest < ActiveSupport::TestCase def test_cat assert_equal "TEST CAT\n", @repository.scm.cat("test") end - else puts "Filesystem test repository NOT FOUND. Skipping unit tests !!! See doc/RUNNING_TESTS." def test_fake; assert true end -- 2.39.5