Sha256: fb56cb833b4afcfdb554c80070f0613bca0cb37c51f22df96180002af7bdb60f

Contents?: true

Size: 548 Bytes

Versions: 4

Compression:

Stored size: 548 Bytes

Contents

require 'simplecov'

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

4 entries across 4 versions & 1 rubygems

Version Path
figgy-1.0.0 spec/spec_helper.rb
figgy-0.9.1 spec/spec_helper.rb
figgy-0.9.0 spec/spec_helper.rb
figgy-0.0.1 spec/spec_helper.rb