Sha256: c8776583df08637e5b8bec55bea104a80cf0100a8c2fb75e4856be230f48558b
Contents?: true
Size: 1.08 KB
Versions: 3
Compression:
Stored size: 1.08 KB
Contents
# encoding: utf-8 # require 'test/unit' require 'kde-build/vcs/svn' class VcsTest < Test::Unit::TestCase @@repository = 'svn+ssh://mjansen@svn.kde.org/home/kde' @@path = '/tmp/ruby_test' def test_vcs vcs = BuildTool::VCS::Base.new( @@repository, @@path ) assert_equal( @@repository, vcs.repository ) assert_equal( @@path, vcs.path ) assert( !vcs.checkedout? ) assert_raise( NotImplementedError ) { vcs.name } assert_raise( NotImplementedError ) { vcs.fetch } assert_raise( NotImplementedError ) { vcs.init } assert_raise( NotImplementedError ) { vcs.rebase } end end class VcsSvnTest < Test::Unit::TestCase @@repository = 'svn+ssh://mjansen@svn.kde.org/home/kde' @@path = '/tmp/ruby_test' def test_vcssvn svn = BuildTool::VCS::SVN.new( @@repository, @@path ) assert_equal( @@repository, svn.repository ) assert_equal( @@path, svn.path ) assert( !svn.checkedout? ) assert( svn.last_changed_rev != 0 ) assert_equal( svn.name, "Subversion" ) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
build-tool-0.0.3 | test/test_vcs_svn.rb |
build-tool-0.0.1 | test/test_vcs_svn.rb |
build-tool-0.0.2 | test/test_vcs_svn.rb |