Sha256: 4f91116dd98ff3ecb4edc4dd49dc7b69491a50c95c98ef531adef298c0220f77
Contents?: true
Size: 1003 Bytes
Versions: 4
Compression:
Stored size: 1003 Bytes
Contents
require_relative '../test_helper' module OhlohScm::Adapters class HgMiscTest < OhlohScm::Test def test_exist save_hg = nil with_hg_repository('hg') do |hg| save_hg = hg assert save_hg.exist? end assert !save_hg.exist? end def test_ls_tree with_hg_repository('hg') do |hg| assert_equal ['README','makefile', 'two'], hg.ls_tree(hg.head_token).sort end end def test_export with_hg_repository('hg') do |hg| OhlohScm::ScratchDir.new do |dir| hg.export(dir) assert_equal ['.', '..', 'README', 'makefile', 'two'], Dir.entries(dir).sort end end end def test_ls_tree_encoding with_hg_repository('hg_with_invalid_encoding') do |hg| filenames = hg.ls_tree('51ea5277ca27') filenames.each do |filename| assert_equal true, filename.valid_encoding? end end end def test_tags with_hg_repository('hg') do |hg| assert_equal hg.tags, [['tip', '5']] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ohloh_scm-2.2.3 | test/unit/hg_misc_test.rb |
ohloh_scm-2.2.2 | test/unit/hg_misc_test.rb |
ohloh_scm-2.2.1 | test/unit/hg_misc_test.rb |
ohloh_scm-2.2.0 | test/unit/hg_misc_test.rb |