Sha256: f0279303440c9efcb879f6c4a3ad8b14c6095bfad48db1b540e42e69419ac8fd

Contents?: true

Size: 748 Bytes

Versions: 6

Compression:

Stored size: 748 Bytes

Contents

ENV["environment"] ||= 'test'
require "bundler/setup"
require 'active-fedora'
require 'spec'
require 'equivalent-xml/rspec_matchers'

require 'support/mock_fedora'


logger.level = Logger::WARN if logger.respond_to? :level ###MediaShelf StubLogger doesn't have a level= method

$:.unshift(File.dirname(__FILE__) + '/../lib')
$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.
ActiveFedora.init(:fedora_config_path=>File.join(File.dirname(__FILE__), "..", "config", "fedora.yml"))

Spec::Runner.configure do |config|
  config.mock_with :mocha
end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
active-fedora-3.1.4 spec/spec_helper.rb
active-fedora-3.1.3 spec/spec_helper.rb
active-fedora-3.1.2 spec/spec_helper.rb
active-fedora-3.1.1 spec/spec_helper.rb
active-fedora-3.1.0 spec/spec_helper.rb
active-fedora-3.1.0.rc4 spec/spec_helper.rb