Sha256: 8076a08921e3602da65cba4086fe4ebb3611635a5147db3347dd5b044f59586d

Contents?: true

Size: 919 Bytes

Versions: 36

Compression:

Stored size: 919 Bytes

Contents

require_relative '../test_helper'

module OhlohScm::Adapters
	class CvsConvertTest < OhlohScm::Test

		def test_basic_convert
			with_cvs_repository('cvs', 'simple') do |src|
				OhlohScm::ScratchDir.new do |dest_dir|
					dest = GitAdapter.new(:url => dest_dir).normalize
					assert !dest.exist?

					dest.pull(src)
					assert dest.exist?

					dest_commits = dest.commits
					src.commits.each_with_index do |c, i|
						# Because CVS does not track authors (only committers),
						# the CVS committer becomes the Git author.
						assert_equal c.committer_date, dest_commits[i].author_date
						assert_equal c.committer_name, dest_commits[i].author_name

						# Depending upon version of Git used, we may or may not have a trailing \n.
						# We don't really care, so just compare the stripped versions.
						assert_equal c.message.strip, dest_commits[i].message.strip
					end
				end
			end
		end
	end
end

Version data entries

36 entries across 36 versions & 1 rubygems

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