Sha256: 6a81b3d93cd56bde407197a25457f61cc58c580b0c9443e7eb4fc57e804e4791

Contents?: true

Size: 1.01 KB

Versions: 11

Compression:

Stored size: 1.01 KB

Contents

require 'simplecov'

SimpleCov.start

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'mina'
require 'rspec'
require 'pry'

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
Rake.application = Mina::Application.new
Dir["./tasks/mina/**/*.rb"].each { |f| require f }

RSpec.configure do |config|
  config.include RakeExampleGroup, type: :rake

  config.raise_errors_for_deprecations!
  config.order = 'random'

  config.before(:all, type: :rake) do
    Mina::Configuration.instance.set :simulate, true
    Mina::Configuration.instance.set :domain, 'localhost'
    Mina::Configuration.instance.set :deploy_to, "#{Dir.pwd}/deploy"
    Mina::Configuration.instance.set :repository, "#{Mina.root_path}"
    Mina::Configuration.instance.set :shared_paths, ['config/database.yml', 'log']
    Mina::Configuration.instance.set :keep_releases, 2
  end

  config.after(:all, type: :rake) do
    Mina::Configuration.instance.remove :simulate
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mina-1.2.4 spec/spec_helper.rb
mina-1.2.3 spec/spec_helper.rb
mina-1.2.2 spec/spec_helper.rb
mina-1.2.1 spec/spec_helper.rb
mina-1.2.0 spec/spec_helper.rb
mina-1.1.1 spec/spec_helper.rb
mina-1.1.0 spec/spec_helper.rb
mina-1.0.7 spec/spec_helper.rb
mina-1.0.6 spec/spec_helper.rb
mina-1.0.5 spec/spec_helper.rb
mina-1.0.4 spec/spec_helper.rb