Sha256: ce2235e1f87d6d59ba04b24d836f57791e2c4ba63887369e3b53d8c3a63a7137

Contents?: true

Size: 724 Bytes

Versions: 15

Compression:

Stored size: 724 Bytes

Contents

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

module RSCM

  class Cvs
    # Convenience factory method used in testing
    def Cvs.local(cvsroot_dir, mod)
      cvsroot_dir = PathConverter.filepath_to_nativepath(cvsroot_dir, true)
      Cvs.new(":local:#{cvsroot_dir}", mod)
    end
  end
  
  class CvsTest < Test::Unit::TestCase
    
    include GenericSCMTests
    include ApplyLabelTest
    
    def create_scm(repository_root_dir, path)
      Cvs.local(repository_root_dir, path)
    end

    def test_should_fail_on_bad_command
      assert_raise(RuntimeError) do
        Cvs.new("").create_central
      end
    end
    
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rscm-0.3.10 test/rscm/scm/cvs_test.rb
rscm-0.3.13 test/rscm/scm/cvs_test.rb
rscm-0.3.14 test/rscm/scm/cvs_test.rb
rscm-0.3.1 test/rscm/scm/cvs_test.rb
rscm-0.3.5 test/rscm/scm/cvs_test.rb
rscm-0.3.12 test/rscm/scm/cvs_test.rb
rscm-0.3.2 test/rscm/scm/cvs_test.rb
rscm-0.3.0 test/rscm/scm/cvs_test.rb
rscm-0.3.4 test/rscm/scm/cvs_test.rb
rscm-0.3.11 test/rscm/scm/cvs_test.rb
rscm-0.3.3 test/rscm/scm/cvs_test.rb
rscm-0.3.9 test/rscm/scm/cvs_test.rb
rscm-0.3.8 test/rscm/scm/cvs_test.rb
rscm-0.3.6 test/rscm/scm/cvs_test.rb
rscm-0.3.7 test/rscm/scm/cvs_test.rb