Sha256: 24f47ebf18307d96783a40ab294b7e490e3b90c00480e5684398be1000e00866

Contents?: true

Size: 978 Bytes

Versions: 3

Compression:

Stored size: 978 Bytes

Contents

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

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

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

require 'active-fedora'
require 'active_fedora_relsint'
require 'rspec'
require 'equivalent-xml/rspec_matchers'
logger.level = Logger::WARN if logger.respond_to? :level ###MediaShelf StubLogger doesn't have a level= method
$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

RSpec.configure do |config|
  config.mock_with :mocha
  config.color_enabled = true
end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_fedora_relsint-0.2.0 spec/spec_helper.rb
active_fedora_relsint-0.1.1 spec/spec_helper.rb
active_fedora_relsint-0.1.0 spec/spec_helper.rb