Sha256: 8c7a9db9324ed922bdc757eeabb939bbe199189a788a62a9cdb7a6eb14b91df6

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 Bytes

Contents

require_relative '../test_helper'

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

		def test_head_and_parents
			with_hglib_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

2 entries across 2 versions & 1 rubygems

Version Path
ohloh_scm-2.1.0 test/unit/hglib_head_test.rb
ohloh_scm-2.0.1 test/unit/hglib_head_test.rb