Sha256: 8b4e3078329ea312e30e3a0b8a4ae1910a7fa9cd1f2adf0e94e67ae155fc4641
Contents?: true
Size: 911 Bytes
Versions: 85
Compression:
Stored size: 911 Bytes
Contents
require 'utils' require 'capistrano/recipes/deploy/scm/none' class DeploySCMNoneTest < Test::Unit::TestCase class TestSCM < Capistrano::Deploy::SCM::None default_command 'none' end def setup @config = {} def @config.exists?(name); key?(name); end @source = TestSCM.new(@config) end def test_the_truth assert true end def test_checkout_on_linux Capistrano::Deploy::LocalDependency.stubs(:on_windows?).returns(false) @config[:repository] = '.' rev = '' dest = '/var/www' assert_equal "cp -R . /var/www", @source.checkout(rev, dest) end def test_checkout_on_windows Capistrano::Deploy::LocalDependency.stubs(:on_windows?).returns(true) @config[:repository] = '.' rev = '' dest = 'c:/Documents and settings/admin/tmp' assert_equal "xcopy . \"c:/Documents and settings/admin/tmp\" /S/I/Y/Q/E", @source.checkout(rev, dest) end end
Version data entries
85 entries across 85 versions & 10 rubygems