summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_filesystem_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-21 01:10:47 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-21 01:10:47 +0000
commit7296315c9520d8d7475980dfa8ebb40c4a6fdae1 (patch)
treefcb1e22a80ce1e1e336e01f02d41aebb9e98259a /test/unit/repository_filesystem_test.rb
parenteb65817ff9b84f0446a0de2bcd4f0a921df0bbae (diff)
downloadredmine-7296315c9520d8d7475980dfa8ebb40c4a6fdae1.tar.gz
redmine-7296315c9520d8d7475980dfa8ebb40c4a6fdae1.zip
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
Diffstat (limited to 'test/unit/repository_filesystem_test.rb')
-rw-r--r--test/unit/repository_filesystem_test.rb9
1 files 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