Sha256: 8421049399a5cf9daf35acd13cd03af3a05e9ead9f4c312aa4c5b65866bad9a1
Contents?: true
Size: 929 Bytes
Versions: 35
Compression:
Stored size: 929 Bytes
Contents
require_relative '../test_helper' require 'socket' module OhlohScm::Adapters class SvnPushTest < OhlohScm::Test def test_basic_push_using_svnsync with_svn_repository('svn') do |src| OhlohScm::ScratchDir.new do |dest_dir| dest = SvnAdapter.new(:url => dest_dir).normalize assert !dest.exist? src.push(dest) assert dest.exist? assert_equal src.log, dest.log end end end # Triggers the "ssh" code path by using svn+ssh:// protocol instead of file:// protocol. # Simulates pushing to another server in our cluster. def test_ssh_push_using_svnsync with_svn_repository('svn') do |src| OhlohScm::ScratchDir.new do |dest_dir| dest = SvnAdapter.new(:url => "svn+ssh://#{Socket.gethostname}#{File.expand_path(dest_dir)}").normalize assert !dest.exist? src.push(dest) assert dest.exist? assert_equal src.log, dest.log end end end end end
Version data entries
35 entries across 35 versions & 1 rubygems