Sha256: f89c5d0d09cb685619871ccfdd86807d2f4938eb862bae042a52fe64ec50c328

Contents?: true

Size: 501 Bytes

Versions: 1

Compression:

Stored size: 501 Bytes

Contents

require_relative '../test_helper'

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

		def test_head_and_parents
			with_hg_repository('hg') do |hg|
				assert_equal '75532c1e1f1d', hg.head_token
				assert_equal '75532c1e1f1de55c2271f6fd29d98efbe35397c4', hg.head.token
				assert hg.head.diffs.any? # diffs should be populated

				assert_equal '468336c6671cbc58237a259d1b7326866afc2817', hg.parents(hg.head).first.token
				assert hg.parents(hg.head).first.diffs.any?
			end
		end

	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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