Skip to content
Snippets Groups Projects
Commit 35c35a19 authored by Toshi MARUYAMA's avatar Toshi MARUYAMA
Browse files

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
parent 1294fe2c
Branches
Tags
No related merge requests found
......@@ -54,12 +54,14 @@ class RepositoryDarcsTest < ActiveSupport::TestCase
assert entries.detect {|e| e.name == 'watchers_controller.rb'}
assert_nil entries.detect {|e| e.name == 'welcome_controller.rb'}
end
def test_cat
@repository.fetch_changesets
cat = @repository.cat("sources/welcome_controller.rb", 2)
assert_not_nil cat
assert cat.include?('class WelcomeController < ApplicationController')
if @repository.scm.supports_cat?
@repository.fetch_changesets
cat = @repository.cat("sources/welcome_controller.rb", 2)
assert_not_nil cat
assert cat.include?('class WelcomeController < ApplicationController')
end
end
else
puts "Darcs test repository NOT FOUND. Skipping unit tests !!!"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment