Sha256: 8e4700897807e18c4f9b4798550b945a1dd51a9ef3766a2c0f6043452b728d0a

Contents?: true

Size: 1.14 KB

Versions: 22

Compression:

Stored size: 1.14 KB

Contents

ENV["environment"] ||= 'test'
require "bundler/setup"


begin
  require 'simplecov'
  SimpleCov.start
rescue LoadError
  #It's nbd if we don't have simplecov
  $stderr.puts "Couldn't load simplecov"
end

require 'active-fedora'
require 'rspec'
require 'rspec/its'
require 'equivalent-xml/rspec_matchers'
require 'logger'

ActiveFedora::Base.logger = Logger.new(STDERR);
ActiveFedora::Base.logger.level = Logger::WARN

Dir[File.expand_path("../support/**/*.rb", __FILE__)].each {|f| require f }
require 'samples/samples'

$VERBOSE=nil

# This loads the Fedora and Solr config info from /config/fedora.yml
# You can load it from a different location by passing a file path as an argument.
def restore_spec_configuration
  ActiveFedora.init(:fedora_config_path=>File.join(File.dirname(__FILE__), "..", "config", "fedora.yml"))
end
restore_spec_configuration

# Shut those Rails deprecation warnings up
ActiveSupport::Deprecation.behavior= Proc.new { |message, callstack| }

RSpec.configure do |config|
end

def fixture(file)
  File.open(File.join(File.dirname(__FILE__), 'fixtures', file), 'rb')
end

def solr_uri(uri)
  uri.gsub(/(:)/, "\\:").gsub(/(\/)/,"\\/")
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
active-fedora-8.7.0 spec/spec_helper.rb
active-fedora-8.6.0 spec/spec_helper.rb
active-fedora-8.5.0 spec/spec_helper.rb
active-fedora-8.4.2 spec/spec_helper.rb
active-fedora-8.4.1 spec/spec_helper.rb
active-fedora-7.3.1 spec/spec_helper.rb
active-fedora-7.3.0 spec/spec_helper.rb
active-fedora-8.4.0 spec/spec_helper.rb
active-fedora-8.3.0 spec/spec_helper.rb
active-fedora-8.2.2 spec/spec_helper.rb
active-fedora-8.2.1 spec/spec_helper.rb
active-fedora-8.2.0 spec/spec_helper.rb
active-fedora-7.2.0 spec/spec_helper.rb
active-fedora-8.1.0 spec/spec_helper.rb
active-fedora-8.0.1 spec/spec_helper.rb
active-fedora-8.0.0 spec/spec_helper.rb
active-fedora-8.0.0.rc3 spec/spec_helper.rb
active-fedora-8.0.0.rc2 spec/spec_helper.rb
active-fedora-8.0.0.rc1 spec/spec_helper.rb
active-fedora-7.1.2 spec/spec_helper.rb