Sha256: ec2fd19a1a92fe3bfc9dd9878790a699fa22c8cf3f54eec953be837033a539e7
Contents?: true
Size: 829 Bytes
Versions: 3
Compression:
Stored size: 829 Bytes
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 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ohloh_scm-2.4.3 | test/unit/git_svn_commits_test.rb |
ohloh_scm-2.4.1 | test/unit/git_svn_commits_test.rb |
ohloh_scm-2.4.0 | test/unit/git_svn_commits_test.rb |