Sha256: f8a5b0b384b930fc3e9bf42bea0c40f5b74dc695e21b77da82bc25452d4cacb9
Contents?: true
Size: 784 Bytes
Versions: 1
Compression:
Stored size: 784 Bytes
Contents
# encoding: utf-8 require_relative '../test_helper' module OhlohScm::Adapters class BzrMiscTest < Scm::Test def test_exist save_bzr = nil with_bzr_repository('bzr') do |bzr| save_bzr = bzr assert save_bzr.exist? end assert !save_bzr.exist? end def test_ls_tree with_bzr_repository('bzr') do |bzr| assert_equal ['Cédric.txt', 'file1.txt', 'file3.txt', 'file4.txt', 'file5.txt'], bzr.ls_tree(bzr.head_token).sort end end def test_export with_bzr_repository('bzr') do |bzr| Scm::ScratchDir.new do |dir| bzr.export(dir) assert_equal ['.', '..', 'Cédric.txt', 'file1.txt', 'file3.txt', 'file4.txt', 'file5.txt'], Dir.entries(dir).sort end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ohloh_scm-2.0.0 | test/unit/bzr_misc_test.rb |