Sha256: 55931b4c93e5a119c32374a4d8618d9a9421a078c1e06f87c07edaa7cf8af628

Contents?: true

Size: 1001 Bytes

Versions: 6

Compression:

Stored size: 1001 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 '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

6 entries across 6 versions & 1 rubygems

Version Path
active-fedora-4.5.1 spec/spec_helper.rb
active-fedora-4.5.0 spec/spec_helper.rb
active-fedora-4.4.1 spec/spec_helper.rb
active-fedora-4.4.0 spec/spec_helper.rb
active-fedora-4.3.0 spec/spec_helper.rb
active-fedora-4.2.0 spec/spec_helper.rb