Sha256: 4e66ab7501716c221df564d047073c8a4ce08ff359970f6106359db3543ee74b

Contents?: true

Size: 698 Bytes

Versions: 9

Compression:

Stored size: 698 Bytes

Contents

require 'capistrano-spec'
require 'capistrano'

RSpec.configure do |config|
  config.include Capistrano::Spec::Matchers
  config.include Capistrano::Spec::Helpers
end

shared_context "Capistrano::Configuration" do
  before do
    @configuration = Capistrano::Configuration.new
    $:.unshift File.dirname(__FILE__) + '/../../lib'
    # @configuration.load_paths.unshift File.dirname(__FILE__) + '/../../lib'
    Capistrano::Configuration.instance = @configuration

    # define _cset etc. from capistrano
    @configuration.load 'deploy'

    # load rvm/capistrano/base etc.
    @configuration.require 'rvm/capistrano'

    @configuration.extend(Capistrano::Spec::ConfigurationExtension)
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
rvm-capistrano-1.5.6 spec/support/capistrano.rb
rvm-capistrano-1.5.5 spec/support/capistrano.rb
rvm-capistrano-1.5.4 spec/support/capistrano.rb
rvm-capistrano-1.5.3 spec/support/capistrano.rb
rvm-capistrano-1.5.2 spec/support/capistrano.rb
capistrano_mailer-3.3.0 spec/support/capistrano.rb
rvm-capistrano-1.5.1 spec/support/capistrano.rb
rvm-capistrano-1.5.0 spec/support/capistrano.rb
rvm-capistrano-1.5.0.rc1 spec/support/capistrano.rb