Sha256: 4f7aac8f15cef7476189f9bac88c73e0534a83b73b39fafc32c31900f835251c

Contents?: true

Size: 573 Bytes

Versions: 5

Compression:

Stored size: 573 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

require 'license_finder'

require 'rspec'

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

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

require 'database_cleaner'

RSpec.configure do |config|
  config.before(:suite) do
    DatabaseCleaner.strategy = :transaction
    DatabaseCleaner.clean_with(:truncation, except: [:schema_migrations])
  end

  config.before(:each) do
    DatabaseCleaner.start
  end

  config.after(:each) do
    DatabaseCleaner.clean
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
license_finder-0.8.2 spec/spec_helper.rb
license_finder-0.8.1-java spec/spec_helper.rb
license_finder-0.8.1 spec/spec_helper.rb
license_finder-0.8.0-java spec/spec_helper.rb
license_finder-0.8.0 spec/spec_helper.rb