Merged r4608 from trunk (repository: switch darcs cat test if cat supports).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@4609 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-01-01 22:05:48 +00:00
parent 69edd3c53f
commit 1cb33f3a95

View File

@ -56,10 +56,12 @@ class RepositoryDarcsTest < ActiveSupport::TestCase
end end
def test_cat def test_cat
@repository.fetch_changesets if @repository.scm.supports_cat?
cat = @repository.cat("sources/welcome_controller.rb", 2) @repository.fetch_changesets
assert_not_nil cat cat = @repository.cat("sources/welcome_controller.rb", 2)
assert cat.include?('class WelcomeController < ApplicationController') assert_not_nil cat
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 !!!"