Sha256: b8ee800a55d2562a0240c277d67718a38025a31297c1dd2ad72238bdb7821c26

Contents?: true

Size: 877 Bytes

Versions: 2

Compression:

Stored size: 877 Bytes

Contents

require 'bundler/setup' ; Bundler.require(:default, :development, :test)
require 'rspec/autorun'

if ENV['GORILLIB_COV']
  require 'simplecov'
  SimpleCov.start do
    add_group  'Specs', "spec/"
    add_group  'Library' do |src|
      src.filename =~ %r{/(lib|examples)/}
    end
  end
end

GORILLIB_ROOT_DIR = File.expand_path(File.join(File.dirname(__FILE__),'..'))
def GORILLIB_ROOT_DIR *paths
  File.join(::GORILLIB_ROOT_DIR, *paths)
end

$LOAD_PATH.unshift(GORILLIB_ROOT_DIR('lib'))
$LOAD_PATH.unshift(GORILLIB_ROOT_DIR('spec/support'))

require_relative 'support/gorillib_test_helpers'
Dir[GORILLIB_ROOT_DIR('spec/support/matchers/*.rb')].each {|f| require f}
Dir[GORILLIB_ROOT_DIR('spec/support/shared_examples/*.rb')].each {|f| require f}

RSpec.configure do |config|
  include Gorillib::TestHelpers
  config.treat_symbols_as_metadata_keys_with_true_values = true
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gorillib-0.6.0 spec/spec_helper.rb
gorillib-0.5.2 spec/spec_helper.rb