spec/spec_helper.rb in hydra-access-controls-8.2.0 vs spec/spec_helper.rb in hydra-access-controls-9.0.0.beta1

- old
+ new

@@ -18,30 +18,37 @@ 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_relative '../app/vocabularies/acl' +require_relative '../app/vocabularies/hydra/acl' +require_relative '../app/models/role_mapper' +require_relative '../app/models/ability' +require_relative '../app/models/hydra/access_controls/access_control_list' +require_relative '../app/models/hydra/access_controls/permission' +require_relative '../app/models/hydra/access_controls/embargo' +require_relative '../app/models/hydra/access_controls/lease' +require_relative '../app/services/hydra/lease_service' +require_relative '../app/services/hydra/embargo_service' +require_relative '../app/validators/hydra/future_date_validator' 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 -RSpec.configure do |config| +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