@@ -35,6 +35,7 class RepositoriesMercurialControllerTest < Test::Unit::TestCase | |||||
35 | Repository::Mercurial.create(:project => Project.find(3), :url => REPOSITORY_PATH) |
|
35 | Repository::Mercurial.create(:project => Project.find(3), :url => REPOSITORY_PATH) | |
36 | end |
|
36 | end | |
37 |
|
37 | |||
|
38 | if File.directory?(REPOSITORY_PATH) | |||
38 | def test_show |
|
39 | def test_show | |
39 | get :show, :id => 3 |
|
40 | get :show, :id => 3 | |
40 | assert_response :success |
|
41 | assert_response :success | |
@@ -114,4 +115,8 class RepositoriesMercurialControllerTest < Test::Unit::TestCase | |||||
114 | :sibling => { :tag => 'td', :content => /jsmith/ }, |
|
115 | :sibling => { :tag => 'td', :content => /jsmith/ }, | |
115 | :sibling => { :tag => 'td', :content => /watcher =/ } |
|
116 | :sibling => { :tag => 'td', :content => /watcher =/ } | |
116 | end |
|
117 | end | |
|
118 | else | |||
|
119 | puts "Mercurial test repository NOT FOUND. Skipping functional tests !!!" | |||
|
120 | def test_fake; assert true end | |||
|
121 | end | |||
117 | end |
|
122 | end |
General Comments 0
You need to be logged in to leave comments.
Login now