Sha256: e7d5c289508b3f7173150c93cbaf29e234b215cc1a9a8956f3717fe2bfc25439

Contents?: true

Size: 613 Bytes

Versions: 2

Compression:

Stored size: 613 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

require 'pry'
require 'license_finder'
require 'rspec'
require 'webmock/rspec'
require 'rspec/its'

ENV['test_run'] = true.to_s

Dir[File.join(File.dirname(__FILE__), 'support', '**', '*.rb')].each do |file|
  require file
end

RSpec.configure do |config|
  config.mock_with :rspec
end

RSpec.configure do |config|
  config.around do |example|
    LicenseFinder::DB.transaction(rollback: :always) { example.run }
  end

  config.after(:suite) do
    ["./doc", "./elsewhere", "./test path", "./config"].each do |tmp_dir|
      FileUtils.rm_rf(tmp_dir)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
license_finder-1.2 spec/spec_helper.rb
license_finder-1.2-java spec/spec_helper.rb