Sha256: 3e6ffaa475e1362c2cd1921b5a1a6ef5b21ad3408ea2ddafd7c251c5a5a2728f

Contents?: true

Size: 808 Bytes

Versions: 36

Compression:

Stored size: 808 Bytes

Contents

require_relative '../test_helper'

module OhlohScm::Adapters
	class BzrPullTest < OhlohScm::Test

		def test_pull
			with_bzr_repository('bzr') do |src|
				OhlohScm::ScratchDir.new do |dest_dir|

					dest = BzrAdapter.new(:url => dest_dir).normalize
					assert !dest.exist?

					dest.pull(src)
					assert dest.exist?

					assert_equal src.log, dest.log

					# Commit some new code on the original and pull again
					src.run "cd '#{src.url}' && touch foo && bzr add foo && bzr whoami 'test <test@example.com>' && bzr commit -m test"
					assert_equal "test", src.commits.last.message
					assert_equal "test", src.commits.last.committer_name
					assert_equal "test@example.com", src.commits.last.committer_email

					dest.pull(src)
					assert_equal src.log, dest.log
				end
			end
		end

	end
end

Version data entries

36 entries across 36 versions & 1 rubygems

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