Sha256: af1faff5ebfb27d35714d414e15c097299e970a5e437729857ae47bb76446d80

Contents?: true

Size: 537 Bytes

Versions: 19

Compression:

Stored size: 537 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 '655f04cf6ad708ab58c7b941672dce09dd369a18', hg.head_token
				assert_equal '655f04cf6ad708ab58c7b941672dce09dd369a18', hg.head.token
				assert hg.head.diffs.any? # diffs should be populated

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

	end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ohloh_scm-2.5.1 test/unit/hglib_head_test.rb
ohloh_scm-2.4.14 test/unit/hglib_head_test.rb
ohloh_scm-2.4.13 test/unit/hglib_head_test.rb
ohloh_scm-2.4.12 test/unit/hglib_head_test.rb
ohloh_scm-2.4.11 test/unit/hglib_head_test.rb
ohloh_scm-2.4.10 test/unit/hglib_head_test.rb
ohloh_scm-2.4.9 test/unit/hglib_head_test.rb
ohloh_scm-2.4.8 test/unit/hglib_head_test.rb
ohloh_scm-2.4.7 test/unit/hglib_head_test.rb
ohloh_scm-2.4.6 test/unit/hglib_head_test.rb
ohloh_scm-2.4.5 test/unit/hglib_head_test.rb
ohloh_scm-2.4.4 test/unit/hglib_head_test.rb
ohloh_scm-2.4.3 test/unit/hglib_head_test.rb
ohloh_scm-2.4.1 test/unit/hglib_head_test.rb
ohloh_scm-2.4.0 test/unit/hglib_head_test.rb
ohloh_scm-2.3.5 test/unit/hglib_head_test.rb
ohloh_scm-2.3.4 test/unit/hglib_head_test.rb
ohloh_scm-2.3.2 test/unit/hglib_head_test.rb
ohloh_scm-2.3.1 test/unit/hglib_head_test.rb