Sha256: 073704bcf82b2498b35f153a503670d189fb3d93453b5ece4ce2d353e8f486d9
Contents?: true
Size: 860 Bytes
Versions: 50
Compression:
Stored size: 860 Bytes
Contents
require "utils" require 'capistrano/recipes/deploy/scm/subversion' class DeploySCMSubversionTest < Test::Unit::TestCase class TestSCM < Capistrano::Deploy::SCM::Subversion default_command "svn" end def setup @config = { :repository => "." } def @config.exists?(name); key?(name); end @source = TestSCM.new(@config) end def test_query_revision revision = @source.query_revision('HEAD') do |o| assert_equal "svn info . -rHEAD", o %Q{Path: rails_2_3 URL: svn+ssh://example.com/var/repos/project/branches/rails_2_3 Repository Root: svn+ssh://example.com/var/repos Repository UUID: 2d86388d-c40f-0410-ad6a-a69da6a65d20 Revision: 2095 Node Kind: directory Last Changed Author: sw Last Changed Rev: 2064 Last Changed Date: 2009-03-11 11:04:25 -0700 (Wed, 11 Mar 2009) } end assert_equal 2095, revision end end
Version data entries
50 entries across 50 versions & 3 rubygems