Sha256: fa1498fbf5f909b42647c632a73ee0e4d206ef44c1a749db479aaeba7be66b3e

Contents?: true

Size: 1.07 KB

Versions: 26

Compression:

Stored size: 1.07 KB

Contents

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

require 'simplecov'
require 'simplecov-rcov'

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

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

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

RSpec.configure do |config|
  config.color_enabled = true
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

26 entries across 26 versions & 1 rubygems

Version Path
active-fedora-5.6.3 spec/spec_helper.rb
active-fedora-6.0.0.rc2 spec/spec_helper.rb
active-fedora-6.0.0.rc1 spec/spec_helper.rb
active-fedora-5.6.2 spec/spec_helper.rb
active-fedora-5.6.1 spec/spec_helper.rb
active-fedora-6.0.0.pre10 spec/spec_helper.rb
active-fedora-6.0.0.pre9 spec/spec_helper.rb
active-fedora-5.6.0 spec/spec_helper.rb
active-fedora-6.0.0.pre8 spec/spec_helper.rb
active-fedora-6.0.0.pre7 spec/spec_helper.rb
active-fedora-5.5.2 spec/spec_helper.rb
active-fedora-6.0.0.pre6 spec/spec_helper.rb
active-fedora-6.0.0.pre5 spec/spec_helper.rb
active-fedora-6.0.0.pre4 spec/spec_helper.rb
active-fedora-6.0.0.pre3 spec/spec_helper.rb
active-fedora-6.0.0.pre2 spec/spec_helper.rb
active-fedora-5.5.1 spec/spec_helper.rb
active-fedora-6.0.0.pre1 spec/spec_helper.rb
active-fedora-5.5.0 spec/spec_helper.rb
active-fedora-5.5.0.rc2 spec/spec_helper.rb