repository: switch darcs cat test if cat supports.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4608 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-01-01 22:01:28 +00:00
parent 1294fe2c96
commit 35c35a193c

View File

@ -56,11 +56,13 @@ class RepositoryDarcsTest < ActiveSupport::TestCase
end end
def test_cat def test_cat
if @repository.scm.supports_cat?
@repository.fetch_changesets @repository.fetch_changesets
cat = @repository.cat("sources/welcome_controller.rb", 2) cat = @repository.cat("sources/welcome_controller.rb", 2)
assert_not_nil cat assert_not_nil cat
assert cat.include?('class WelcomeController < ApplicationController') assert cat.include?('class WelcomeController < ApplicationController')
end end
end
else else
puts "Darcs test repository NOT FOUND. Skipping unit tests !!!" puts "Darcs test repository NOT FOUND. Skipping unit tests !!!"
def test_fake; assert true end def test_fake; assert true end