Sha256: d1d9e48aadcb87b6e6e78fa223026de6266cbc6c75d7c3eaf6975e4168d037b2
Contents?: true
Size: 1.11 KB
Versions: 12
Compression:
Stored size: 1.11 KB
Contents
require_relative '../test_helper' module OhlohScm::Adapters class GitSvnCommitsTest < OhlohScm::Test def test_commit_tokens with_git_svn_repository('git_svn') do |git_svn| assert_equal [1,2,3,5], git_svn.commit_tokens assert_equal [3,5], git_svn.commit_tokens(after: 2) end end def test_commits with_git_svn_repository('git_svn') do |git_svn| assert_equal [1,2,3,5], git_svn.commits.map(&:token) assert_equal [3,5], git_svn.commits(after: 2).map(&:token) assert_equal [], git_svn.commits(after: 7) end end def test_each_commit with_git_svn_repository('git_svn') do |git_svn| commits = [] git_svn.each_commit { |c| commits << c } assert_equal [1,2,3,5], git_svn.commits.map(&:token) end end def test_source_scm_commit_count with_svn_repository('svn', 'trunk') do |src| OhlohScm::ScratchDir.new do |dest_dir| git_svn = GitSvnAdapter.new(:url => dest_dir).normalize assert_equal(git_svn.source_scm_commit_count(source_scm: src), 5) end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems