Sha256: 82b3350ec23413a88030158a4eb76a84c01739cb3233ec7309375e6df8d28a1a
Contents?: true
Size: 1017 Bytes
Versions: 4
Compression:
Stored size: 1017 Bytes
Contents
# encoding: utf-8 require_relative '../test_helper' module OhlohScm::Adapters class BzrMiscTest < OhlohScm::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.map { |filename| filename.force_encoding(Encoding::UTF_8) } end end def test_export with_bzr_repository('bzr') do |bzr| OhlohScm::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 def test_tags with_bzr_repository('bzr') do |bzr| assert_equal bzr.tags, [['v1.0.0', '5'], ['v2.0.0','7']] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ohloh_scm-2.2.3 | test/unit/bzr_misc_test.rb |
ohloh_scm-2.2.2 | test/unit/bzr_misc_test.rb |
ohloh_scm-2.2.1 | test/unit/bzr_misc_test.rb |
ohloh_scm-2.2.0 | test/unit/bzr_misc_test.rb |