Sha256: a9bd9b9950ae8f06e3387cc46e42fb602644b0a6e31d27eb3f2df7d761fcbe75

Contents?: true

Size: 618 Bytes

Versions: 2

Compression:

Stored size: 618 Bytes

Contents

require 'simplecov'
require 'cli-test'
require 'fileutils'

SimpleCov.start

if ENV['CI'] == 'true'
  require 'codecov'
  SimpleCov.formatter = SimpleCov::Formatter::Codecov
else
  SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
end

require 'planter'

RSpec.configure do |c|
  c.expect_with(:rspec) { |e| e.syntax = :expect }
  c.before do
    ENV["RUBYOPT"] = '-W1'
    ENV['PLANTER_DEBUG'] = 'true'
    Planter.base_dir = File.expand_path('spec')
    allow(FileUtils).to receive(:remove_entry_secure).with(anything)
    allow(FileUtils).to receive(:mkdir_p).with(anything)
  end
  c.add_formatter 'd'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
planter-cli-3.0.1 spec/spec_helper.rb
planter-cli-0.0.4 spec/spec_helper.rb