Sha256: b47407575f99794d30fe05d3ec3c8ec44a7fcab54fc0ed9c3a7bfcee5bb84656
Contents?: true
Size: 1.59 KB
Versions: 8
Compression:
Stored size: 1.59 KB
Contents
ENV["environment"] ||= "test" require 'rspec/mocks' require 'rspec/its' require 'hydra-access-controls' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) Hydra::Engine.config.autoload_paths.each { |path| $LOAD_PATH.unshift path } require 'byebug' unless ENV['CI'] if ENV['COVERAGE'] and RUBY_VERSION =~ /^1.9/ require 'simplecov' require 'simplecov-rcov' SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter SimpleCov.start end require 'support/rails' # Since we're not doing a Rails Engine test, we have to load these classes manually: require 'active_support' require 'active_support/dependencies' relative_load_paths = ["#{Blacklight.root}/app/controllers/concerns", "#{Blacklight.root}/app/models", "app/models", "app/models/concerns", "app/indexers", "app/services", "app/validators", "app/vocabularies"] ActiveSupport::Dependencies.autoload_paths += relative_load_paths require 'support/mods_asset' require 'support/solr_document' require "support/user" require "factory_girl" require "factories" # HttpLogger.logger = Logger.new(STDOUT) # HttpLogger.ignore = [/localhost:8983\/solr/] # HttpLogger.colorize = false ActiveFedora::Base.logger = Logger.new(STDOUT) require 'active_fedora/cleaner' RSpec.configure do |config| config.before(:each) do ActiveFedora::Cleaner.clean! end end # Stubbing Devise class Devise def self.authentication_keys ["uid"] end end
Version data entries
8 entries across 8 versions & 1 rubygems