Sha256: 57189295910b92130cad1648f94b0b0a129875bb8c6847cb0435e415f1e0693c

Contents?: true

Size: 793 Bytes

Versions: 27

Compression:

Stored size: 793 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

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

require File.expand_path("config/environment", ENV['RAILS_ROOT'] || File.expand_path("../internal", __FILE__))
require 'bundler/setup'
require 'rspec/rails'
require 'hydra-core'

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::TestHelpers, 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

27 entries across 27 versions & 1 rubygems

Version Path
hydra-core-9.10.0 spec/spec_helper.rb
hydra-core-9.9.0 spec/spec_helper.rb
hydra-core-9.8.1 spec/spec_helper.rb
hydra-core-9.8.0 spec/spec_helper.rb
hydra-core-9.7.1 spec/spec_helper.rb
hydra-core-9.7.0 spec/spec_helper.rb
hydra-core-9.6.0 spec/spec_helper.rb
hydra-core-9.5.0 spec/spec_helper.rb
hydra-core-9.4.1 spec/spec_helper.rb
hydra-core-9.4.0 spec/spec_helper.rb
hydra-core-9.3.0 spec/spec_helper.rb
hydra-core-9.2.2 spec/spec_helper.rb
hydra-core-9.2.1 spec/spec_helper.rb
hydra-core-9.2.0 spec/spec_helper.rb
hydra-core-9.2.0.rc1 spec/spec_helper.rb
hydra-core-9.1.4 spec/spec_helper.rb
hydra-core-9.1.3 spec/spec_helper.rb
hydra-core-9.1.2 spec/spec_helper.rb
hydra-core-9.1.1 spec/spec_helper.rb
hydra-core-9.1.0 spec/spec_helper.rb