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