Do not run Mercurial functional tests if the test repository is not set up.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1019 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a456225852
commit
3d5381b24b
|
@ -35,6 +35,7 @@ class RepositoriesMercurialControllerTest < Test::Unit::TestCase
|
|||
Repository::Mercurial.create(:project => Project.find(3), :url => REPOSITORY_PATH)
|
||||
end
|
||||
|
||||
if File.directory?(REPOSITORY_PATH)
|
||||
def test_show
|
||||
get :show, :id => 3
|
||||
assert_response :success
|
||||
|
@ -114,4 +115,8 @@ class RepositoriesMercurialControllerTest < Test::Unit::TestCase
|
|||
:sibling => { :tag => 'td', :content => /jsmith/ },
|
||||
:sibling => { :tag => 'td', :content => /watcher =/ }
|
||||
end
|
||||
else
|
||||
puts "Mercurial test repository NOT FOUND. Skipping functional tests !!!"
|
||||
def test_fake; assert true end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue