Sha256: 1f82ad1b9c05697bbce9228d032c3aac3a6073a82e6b28a9d46feae3afb6348e

Contents?: true

Size: 660 Bytes

Versions: 22

Compression:

Stored size: 660 Bytes

Contents

require 'test/unit'
require 'rscm'
require 'rscm/generic_scm_tests'

module RSCM
  class SubversionTest < Test::Unit::TestCase
  
    include GenericSCMTests
    include LabelTest

    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

22 entries across 22 versions & 1 rubygems

Version Path
rscm-0.3.9 test/rscm/scm/subversion_test.rb
rscm-0.4.3 test/rscm/scm/subversion_test.rb