Sha256: b6a70b73f9450a9ef609fee0fa4a7c1fef5bafc0d7d2d0569a809880f0accf38
Contents?: true
Size: 856 Bytes
Versions: 1
Compression:
Stored size: 856 Bytes
Contents
require_relative '../test_helper' module OhlohScm::Adapters class SvnConvertTest < Scm::Test def test_basic_convert with_svn_repository('svn') do |src| Scm::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 Subversion does not track authors (only committers), # the Subversion committer becomes the Git author. assert_equal c.committer_name, dest_commits[i].author_name assert_equal c.committer_date.round, dest_commits[i].author_date # The svn-to-git conversion process loses the trailing \n for single-line messages assert_equal c.message.strip, dest_commits[i].message.strip end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ohloh_scm-2.0.0 | test/unit/svn_convert_test.rb |