Sha256: b66a702ee5238e709021c71df9cf30dbffaeb1ebf121b0675e4a1eb076126c4e
Contents?: true
Size: 1.52 KB
Versions: 2
Compression:
Stored size: 1.52 KB
Contents
#! /usr/bin/env ruby require File.dirname(__FILE__) + '/test_helper.rb' require '_external_tools' require 'ftools' require '_test-util' class VCSTest < Test::Unit::TestCase include TestUtil include Gonzui::Util def teardown remove_db(Gonzui::Config.new) end def prepare make_dist_tree config = Gonzui::Config.new config.quiet = true remove_db(config) return config end def test_cvs config = prepare make_cvs cvs = Gonzui::CVS.new(config, cvsroot, "foo") cvs.extract cached_foo = File.join(config.cache_directory, "foo") entries = Dir.entries_without_dots(cached_foo) FOO_FILES.each {|base_name| assert(entries.include?(base_name)) } remove_cvs end if (CVS_) def test_svn config = prepare svnroot_uri = make_svn svn = Gonzui::Subversion.new(config, svnroot_uri, "foo") svn.extract cached_foo = File.join(config.cache_directory, "foo") entries = Dir.entries_without_dots(cached_foo) FOO_FILES.each {|base_name| assert(entries.include?(base_name)) } remove_svn end if (SVN_) def test_git config = prepare gitroot = make_git git = Gonzui::Git.new(config, gitroot, "foo") git.extract cached_foo = File.join(config.cache_directory, File.basename(gitroot)) entries = Dir.entries_without_dots(cached_foo) FOO_FILES.each {|base_name| assert(entries.include?(base_name)) } remove_git end if (GIT_) end if (CVS_ || SVN_ || GIT_)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gonzui-1.2-x86-mswin32-60 | test/test_vcs.rb |
gonzui-1.2 | test/test_vcs.rb |