Sha256: 917952fd60069ff112659a7c8ef283db2f66d4b19cabb79114f8c4325ab699b6
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
ENV['environment'] ||= 'test' require 'bundler/setup' begin require 'simplecov' require 'simplecov-rcov' SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter 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 'equivalent-xml/rspec_matchers' Dir[File.expand_path('../support/**/*.rb', __FILE__)].each {|f| require f } 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 # Shut those Rails deprecation warnings up ActiveSupport::Deprecation.behavior = Proc.new { |message, callstack| } 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active-fedora-6.8.0 | spec/spec_helper.rb |