Sha256: 4a262db61a06eb781bfe704f29553a66d633677c7f0a9f4605587ec3ff640b00
Contents?: true
Size: 933 Bytes
Versions: 2
Compression:
Stored size: 933 Bytes
Contents
# coding: utf-8 require 'tapp' if ENV['COVERAGE'] require 'simplecov' SimpleCov.start end RETTER_ROOT = Pathname.new(File.dirname(__FILE__) + '/../').realpath require RETTER_ROOT.join('lib', 'retter') Dir[File.dirname(__FILE__) + '/support/*'].each {|f| require f } RSpec.configure do |config| config.filter_run focus: true config.run_all_when_everything_filtered = true retter_home = RETTER_ROOT.join('tmp/test') skel = RETTER_ROOT.join('lib/retter/generator/skel') fake_editor = RETTER_ROOT.join('spec/bin/fake_editor') config.before :each, clean: :all do FileUtils.cp_r skel, retter_home.dirname.join('test') end config.after :each, clean: :all do FileUtils.rm_rf retter_home Retter.reset! end config.before do env = {'EDITOR' => fake_editor.to_path, 'RETTER_HOME' => RETTER_ROOT.join('tmp', 'test').to_s} Retter.load env end config.include ExampleGroupHelper end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
retter-0.2.2 | spec/spec_helper.rb |
retter-0.2.1 | spec/spec_helper.rb |