Sha256: fdbc62b97f04c549064b8f072761d1c18a7e9ae71dcc6ce6e2d6973f8b06507a

Contents?: true

Size: 618 Bytes

Versions: 2

Compression:

Stored size: 618 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

module RSCM
  class SubversionTest < Test::Unit::TestCase
    compat(:rscm_engine, :full)

    def create_scm(repository_root_dir, path)
      Subversion.new(PathConverter.filepath_to_nativeurl("#{repository_root_dir}/#{path}"), path)
    end

    def test_repourl
      svn = Subversion.new("svn+ssh://mooky/bazooka/baluba", "bazooka/baluba")
      assert_equal("svn+ssh://mooky", svn.repourl)

      svn.path = nil
      assert_equal(svn.url, svn.repourl)

      svn.path = ""
      assert_equal(svn.url, svn.repourl)
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rscm-0.5.0 test/rscm/scm/subversion_test.rb
rscm-0.5.1 test/rscm/scm/subversion_test.rb