Sha256: 069d7a963d6cd540fb06a1b859acd7841c7a7689346dd1dc3b9be95d58ba5b82
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
require 'helper' require 'kvm/source' require 'fileutils' class TestSource < KVM::KVMTest def test_source_existence assert !KVM::Source.new("missing", "source").exists? FileUtils.mkdir_p(File.expand_path(KVM::Subversion.checkout_path(KVM::Source::BASE_DIR, "foo", "a/b/c"))) assert KVM::Source.new("foo", "a/b/c").exists? p KVM::Source.list end def test_checkout src = KVM::Source.new(TEST_REPO) assert !src.exists? src.get assert src.exists? end def test_update src = KVM::Source.new(TEST_REPO) assert !src.exists? src.update assert src.exists? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kvm-0.0.1.pre | test/test_source.rb |