Sha256: 18cd73a08846452c324bb04b0141f104666c1bbb216f147ff17fca2d8894de26

Contents?: true

Size: 596 Bytes

Versions: 4

Compression:

Stored size: 596 Bytes

Contents

# frozen_string_literal: true

ENV['RAILS_ENV'] ||= 'test'

require 'engine_cart'
EngineCart.load_application!

require 'blacklight-access_controls'

require 'factory_bot_rails'
require 'database_cleaner'

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

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

  config.include SolrSupport

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

  config.before do
    DatabaseCleaner.strategy = :transaction
    DatabaseCleaner.start
  end

  config.after do
    DatabaseCleaner.clean
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-access_controls-6.0.1 spec/spec_helper.rb
blacklight-access_controls-6.0.0 spec/spec_helper.rb
blacklight-access_controls-0.7.0 spec/spec_helper.rb
blacklight-access_controls-0.7.0.rc1 spec/spec_helper.rb