Sha256: 66d53db4fa35bf4b50c5bacd3ee362f0bd4daaf0b54ccde1a3489b7b3f9608ac

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

ENV["environment"] ||= "test"

require 'rspec/mocks'
require 'rspec/autorun'
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 }

if ENV['COVERAGE'] and RUBY_VERSION =~ /^1.9/
  require 'simplecov'
  require 'simplecov-rcov'

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

require 'support/mods_asset'
require 'support/solr_document'
require "support/user"
require "factory_girl"
require "factories"

require 'support/blacklight'
require 'support/rails'
Object.logger = Logger.new(File.expand_path('../test.log', __FILE__))

# Since we're not doing a Rails Engine test, we have to load these classes manually:
require_relative '../app/models/role_mapper'
require_relative '../app/models/ability'



RSpec.configure do |config|

end

# Stubbing a deprecated class/method so it won't mess up tests.
class Hydra::SuperuserAttributes
 cattr_accessor :silenced
end

# Stubbing Devise
class Devise
  def self.authentication_keys
    ["uid"]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hydra-access-controls-7.0.0.rc1 spec/spec_helper.rb
hydra-access-controls-7.0.0.pre3 spec/spec_helper.rb
hydra-access-controls-7.0.0.pre2 spec/spec_helper.rb
hydra-access-controls-7.0.0.pre1 spec/spec_helper.rb