Sha256: 8a6344b0a32989e9482c56b20d37cab99d064dd6ec7c96d632e57890a6dbf789
Contents?: true
Size: 821 Bytes
Versions: 14
Compression:
Stored size: 821 Bytes
Contents
ENV["environment"] ||= 'test' require "bundler/setup" require 'active-fedora' require 'rspec' require 'equivalent-xml/rspec_matchers' require 'support/mock_fedora' require 'samples/samples' 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
14 entries across 14 versions & 1 rubygems