Sha256: 8083f8f6afaa8309b1b3c36036f6e6416f357130c9d8432982ade9cad3c1b292

Contents?: true

Size: 717 Bytes

Versions: 14

Compression:

Stored size: 717 Bytes

Contents

require_relative '../test_helper'

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

		def test_head_and_parents
			with_hg_repository('hg') do |hg|
				assert_equal '655f04cf6ad7', 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

    def test_head_with_branch
      with_hg_repository('hg', 'develop') do |hg|
        assert_equal '4d54c3f0526a1ec89214a70615a6b1c6129c665c', hg.head.token
        assert hg.head.diffs.any?
      end
    end
	end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ohloh_scm-2.2.13 test/unit/hg_head_test.rb
ohloh_scm-2.2.12 test/unit/hg_head_test.rb
ohloh_scm-2.2.11 test/unit/hg_head_test.rb
ohloh_scm-2.2.10 test/unit/hg_head_test.rb
ohloh_scm-2.2.9 test/unit/hg_head_test.rb
ohloh_scm-2.2.8 test/unit/hg_head_test.rb
ohloh_scm-2.2.7 test/unit/hg_head_test.rb
ohloh_scm-2.2.6 test/unit/hg_head_test.rb
ohloh_scm-2.2.5 test/unit/hg_head_test.rb
ohloh_scm-2.2.4 test/unit/hg_head_test.rb
ohloh_scm-2.2.3 test/unit/hg_head_test.rb
ohloh_scm-2.2.2 test/unit/hg_head_test.rb
ohloh_scm-2.2.1 test/unit/hg_head_test.rb
ohloh_scm-2.2.0 test/unit/hg_head_test.rb