##// END OF EJS Templates
repository: switch darcs cat test if cat supports....
Toshi MARUYAMA -
r4488:35c35a193cd7
parent child
Show More
@@ -54,12 +54,14 class RepositoryDarcsTest < ActiveSupport::TestCase
54 54 assert entries.detect {|e| e.name == 'watchers_controller.rb'}
55 55 assert_nil entries.detect {|e| e.name == 'welcome_controller.rb'}
56 56 end
57
57
58 58 def test_cat
59 @repository.fetch_changesets
60 cat = @repository.cat("sources/welcome_controller.rb", 2)
61 assert_not_nil cat
62 assert cat.include?('class WelcomeController < ApplicationController')
59 if @repository.scm.supports_cat?
60 @repository.fetch_changesets
61 cat = @repository.cat("sources/welcome_controller.rb", 2)
62 assert_not_nil cat
63 assert cat.include?('class WelcomeController < ApplicationController')
64 end
63 65 end
64 66 else
65 67 puts "Darcs test repository NOT FOUND. Skipping unit tests !!!"
General Comments 0
You need to be logged in to leave comments. Login now