Sha256: 9b7ff54f0a55131aa5a7fea1ceb2417e471a1b6b5e9a5c3e39cab7b72b98c171

Contents?: true

Size: 705 Bytes

Versions: 1

Compression:

Stored size: 705 Bytes

Contents

require 'simplecov'
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  Coveralls::SimpleCov::Formatter,
  SimpleCov::Formatter::HTMLFormatter,
]

SimpleCov.start

require 'rspec'
require 'figgy'
require 'aruba/api'
require 'heredoc_unindent'

module Figgy::SpecHelpers
  def test_config
    Figgy.build do |config|
      config.root = current_dir
      yield config if block_given?
    end
  end

  def write_config(filename, contents)
    filename = "#{filename}.yml" unless filename =~ /\./
    write_file(filename, contents.unindent)
  end
end

RSpec.configure do |c|
  c.include Aruba::Api
  c.include Figgy::SpecHelpers

  c.after { FileUtils.rm_rf(current_dir) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
figgy-1.1.0 spec/spec_helper.rb