Sha256: de3febaa7a4c0093eecd3020aa45b474c535de343a7155c6b9cdd3e202f63e8a

Contents?: true

Size: 919 Bytes

Versions: 8

Compression:

Stored size: 919 Bytes

Contents

# frozen_string_literal: true

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 'simplecov'
require 'coveralls'

SimpleCov.root(File.expand_path('../..', __dir__))
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
  [
    SimpleCov::Formatter::HTMLFormatter,
    Coveralls::SimpleCov::Formatter
  ]
)
SimpleCov.start('rails') do
  add_filter %r{lib/generators/.*\.rb}
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

8 entries across 8 versions & 1 rubygems

Version Path
hydra-core-11.0.7 spec/spec_helper.rb
hydra-core-11.0.6 spec/spec_helper.rb
hydra-core-11.0.5 spec/spec_helper.rb
hydra-core-11.0.4 spec/spec_helper.rb
hydra-core-11.0.1 spec/spec_helper.rb
hydra-core-11.0.0 spec/spec_helper.rb
hydra-core-11.0.0.rc2 spec/spec_helper.rb
hydra-core-10.7.0 spec/spec_helper.rb