Sha256: 2c94174ccf2a01f357b01913cba481636693979be8335d6cb05c5bf0b0572a22

Contents?: true

Size: 572 Bytes

Versions: 1

Compression:

Stored size: 572 Bytes

Contents

require_relative '../test_helper'

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

		def test_head_and_parents
			with_bzrlib_repository('bzr') do |bzr|
				assert_equal 'test@example.com-20111222183733-y91if5npo3pe8ifs', bzr.head_token
				assert_equal 'test@example.com-20111222183733-y91if5npo3pe8ifs', bzr.head.token
				assert bzr.head.diffs.any? # diffs should be populated

				assert_equal 'obnox@samba.org-20090204004942-73rnw0izen42f154', bzr.parents(bzr.head).first.token
				assert bzr.parents(bzr.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/bzrlib_head_test.rb