Sha256: 014d67247598518f1f5f79f73254610dde23e626d6ad461717c948f1a06c0283
Contents?: true
Size: 1.15 KB
Versions: 8
Compression:
Stored size: 1.15 KB
Contents
require 'spec_helper' require 'capistrano' describe 'Capistrano has uploaded' do include Capistrano::Spec::Matchers before do @configuration = Capistrano::Configuration.new @configuration.extend Capistrano::Spec::ConfigurationExtension @configuration.load do def upload_from_to upload 'source.file', 'target.file' end def upload_to upload 'temp.XC3PO.file', 'target.file' # E.g. uploading generated tar end def upload_from upload 'source.file', 'temp.XC3PO.file' # E.g. uploading to temp file end end end subject(:configuration) { @configuration } it 'some file' do configuration.upload 'source.file', 'target.file' expect{ should have_uploaded } end it 'a specific file to a specific location' do configuration.upload_from_to expect{ should have_uploaded('source.file').to('target.file') } end it 'a specific file to some location' do configuration.upload_from expect{ should have_uploaded('source.file') } end it 'some file to a specific location' do configuration.upload_to expect{ should have_uploaded.to('target.file') } end end
Version data entries
8 entries across 8 versions & 1 rubygems