Sha256: b0c2f016f68458efa6890dbaa19eb0c7dca330c44a349bf7f871d30e8bb8a9c8

Contents?: true

Size: 633 Bytes

Versions: 1

Compression:

Stored size: 633 Bytes

Contents

require_relative '../test_helper'

module OhlohScm::Adapters
	class HgPullTest < Scm::Test

		def test_pull
			with_hg_repository('hg') do |src|
				Scm::ScratchDir.new do |dest_dir|

					dest = HgAdapter.new(:url => dest_dir).normalize
					assert !dest.exist?

					dest.pull(src)
					assert dest.exist?

					assert_equal src.log, dest.log

					# Commit some new code on the original and pull again
					src.run "cd '#{src.url}' && touch foo && hg add foo && hg commit -u test -m test"
					assert_equal "test\n", src.commits.last.message

					dest.pull(src)
					assert_equal src.log, dest.log
				end
			end
		end

	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ohloh_scm-2.0.0 test/unit/hg_pull_test.rb