spec/spec_helper.rb in mina-1.0.0.beta2 vs spec/spec_helper.rb in mina-1.0.0.beta3

- old
+ new

@@ -10,16 +10,27 @@ 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 RunHelper + config.include RakeExampleGroup, type: :rake config.raise_errors_for_deprecations! config.order = 'random' - config.after(:each) do - Mina::Configuration.instance.reset! + 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