Sha256: 90b035dd8f90414ac510b95b596f546cb8eb6e0b44d777741dfc1159b7afe322
Contents?: true
Size: 1.08 KB
Versions: 7
Compression:
Stored size: 1.08 KB
Contents
require 'codeclimate-test-reporter' require 'simplecov' CodeClimate::TestReporter.start 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
7 entries across 7 versions & 1 rubygems