Sha256: e1d6fe0cb5ba2596e0d70c983cc30f2e1dd2522df5d07f4075009f0a80387f1b

Contents?: true

Size: 593 Bytes

Versions: 23

Compression:

Stored size: 593 Bytes

Contents

require 'spec_helper'

describe 'GitSvn::Scm' do
  it 'must convert to git Repository' do
    with_svn_repository('svn') do |src|
      tmpdir do |local_dir|
        git_svn = get_core(:git_svn, url: local_dir)
        git_svn.scm.pull(src.scm, TestCallback.new)
        assert git_svn.status.exist?

        git_svn.activity.commit_count.must_equal 5
      end
    end
  end

  it 'must fetch the repo' do
    OhlohScm::GitSvn::Scm.any_instance.expects(:run).times(3)
    with_git_svn_repository('git_svn') do |git_svn|
      git_svn.scm.pull(git_svn.scm, TestCallback.new)
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ohloh_scm-4.0.4 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-4.0.3 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-4.0.2 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-4.0.1 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-3.0.21 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-3.0.19 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-3.0.17 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-3.0.16 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-3.0.15 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-3.0.14 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-3.0.13 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-3.0.12 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-3.0.11 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-3.0.10 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-3.0.9 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-3.0.8 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-3.0.7 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-3.0.6 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-3.0.5 spec/ohloh_scm/git_svn/scm_spec.rb
ohloh_scm-3.0.4 spec/ohloh_scm/git_svn/scm_spec.rb