Sha256: 709a10172d1607fd533b1fd2ae8c7813aaddadef4b23289bc4bd38a5b2f289ae

Contents?: true

Size: 767 Bytes

Versions: 3

Compression:

Stored size: 767 Bytes

Contents

ENV["RAILS_ENV"] ||= "test"

require 'engine_cart'
path = File.expand_path(File.join('..', '..', '..', '.internal_test_app'), __FILE__)
EngineCart.load_application! path

require 'bundler/setup'
require 'rspec/rails'
require 'hydra-core'
require "factory_bot"
require "factories"

if ENV['COVERAGE']
  require 'simplecov'
  require 'simplecov-rcov'

  SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
  SimpleCov.start
end

ActiveFedora::Base.logger = Logger.new(STDOUT)

require 'active_fedora/cleaner'
RSpec.configure do |config|
  config.include Devise::Test::ControllerHelpers, type: :controller
  config.use_transactional_fixtures = true
  config.infer_spec_type_from_file_location!

  config.before(:each) do
    ActiveFedora::Cleaner.clean!
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hydra-core-10.6.0 spec/spec_helper.rb
hydra-core-10.5.1 spec/spec_helper.rb
hydra-core-11.0.0.rc1 spec/spec_helper.rb