Sha256: 504bcfeb9c4557b3b83aec6119db377b181e29aa6380d748d364b3eb25237529

Contents?: true

Size: 610 Bytes

Versions: 6

Compression:

Stored size: 610 Bytes

Contents

# frozen_string_literal: true
ENV['RAILS_ENV'] ||= 'test'

require 'engine_cart'
EngineCart.load_application!

require 'blacklight-access_controls'
require 'factory_girl_rails'
require 'database_cleaner'

Dir['./spec/support/**/*.rb'].sort.each { |f| require f }

RSpec.configure do |config|
  config.include FactoryGirl::Syntax::Methods

  config.include SolrSupport

  config.before(:suite) do
    DatabaseCleaner.clean_with :truncation
  end

  config.before(:each) do
    DatabaseCleaner.strategy = :transaction
    DatabaseCleaner.start
  end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
blacklight-access_controls-0.6.0 spec/spec_helper.rb
blacklight-access_controls-0.5.1 spec/spec_helper.rb
blacklight-access_controls-0.5.0 spec/spec_helper.rb
blacklight-access_controls-0.4.1 spec/spec_helper.rb
blacklight-access_controls-0.4.0 spec/spec_helper.rb
blacklight-access_controls-0.3.0 spec/spec_helper.rb