@@ -26,15 +26,17 class RepositoryFilesystemTest < ActiveSupport::TestCase | |||
|
26 | 26 | def setup |
|
27 | 27 | @project = Project.find(3) |
|
28 | 28 | Setting.enabled_scm << 'Filesystem' unless Setting.enabled_scm.include?('Filesystem') |
|
29 |
|
|
|
30 |
:project => @project, |
|
|
29 | @repository = Repository::Filesystem.create( | |
|
30 | :project => @project, | |
|
31 | :url => REPOSITORY_PATH | |
|
32 | ) | |
|
33 | assert @repository | |
|
31 | 34 | end |
|
32 | 35 | |
|
33 | 36 | if File.directory?(REPOSITORY_PATH) |
|
34 | 37 | def test_fetch_changesets |
|
35 | 38 | @repository.fetch_changesets |
|
36 | 39 | @repository.reload |
|
37 | ||
|
38 | 40 | assert_equal 0, @repository.changesets.count |
|
39 | 41 | assert_equal 0, @repository.changes.count |
|
40 | 42 | end |
@@ -47,7 +49,6 class RepositoryFilesystemTest < ActiveSupport::TestCase | |||
|
47 | 49 | def test_cat |
|
48 | 50 | assert_equal "TEST CAT\n", @repository.scm.cat("test") |
|
49 | 51 | end |
|
50 | ||
|
51 | 52 | else |
|
52 | 53 | puts "Filesystem test repository NOT FOUND. Skipping unit tests !!! See doc/RUNNING_TESTS." |
|
53 | 54 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now