Sha256: 1ecda3e5e6cf7e483c4027f734a3a81617e26964b328821e05dbd70ad7e5e5ab
Contents?: true
Size: 770 Bytes
Versions: 16
Compression:
Stored size: 770 Bytes
Contents
require 'spec_helper' describe 'Hg::Scm' do it 'must pull hg repository and clean up non .hg files' do with_hg_repository('hg') do |src| tmpdir do |dir| dest = OhlohScm::Factory.get_core(scm_type: :hg, url: dir) dest.status.wont_be :exist? dest.scm.pull(src.scm, TestCallback.new) dest.status.must_be :exist? Dir.entries(dir).sort.must_equal ['.', '..', '.hg'] # Commit some new code on the original and pull again run_p "cd '#{src.scm.url}' && touch foo && hg add foo && hg commit -u test -m test" src.activity.commits.last.message.must_equal "test\n" dest.scm.pull(src.scm, TestCallback.new) Dir.entries(dir).sort.must_equal ['.', '..', '.hg'] end end end end
Version data entries
16 entries across 16 versions & 1 rubygems