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.2 test/rscm/scm/subversion_test.rb
rscm-0.3.16 test/rscm/scm/subversion_test.rb
rscm-0.3.1 test/rscm/scm/subversion_test.rb
rscm-0.3.13 test/rscm/scm/subversion_test.rb
rscm-0.3.14 test/rscm/scm/subversion_test.rb
rscm-0.3.3 test/rscm/scm/subversion_test.rb
rscm-0.2.0 test/rscm/scm/subversion_test.rb
rscm-0.3.10 test/rscm/scm/subversion_test.rb
rscm-0.3.5 test/rscm/scm/subversion_test.rb
rscm-0.3.0 test/rscm/scm/subversion_test.rb
rscm-0.3.12 test/rscm/scm/subversion_test.rb
rscm-0.3.11 test/rscm/scm/subversion_test.rb
rscm-0.3.15 test/rscm/scm/subversion_test.rb
rscm-0.3.4 test/rscm/scm/subversion_test.rb
rscm-0.2.1.1404 test/rscm/scm/subversion_test.rb
rscm-0.4.0 test/rscm/scm/subversion_test.rb
rscm-0.4.2 test/rscm/scm/subversion_test.rb
rscm-0.3.7 test/rscm/scm/subversion_test.rb
rscm-0.3.6 test/rscm/scm/subversion_test.rb
rscm-0.3.8 test/rscm/scm/subversion_test.rb