Sha256: f80f57b8e308f910ca3e8024b40599ec93f95571ad9ce7281183dc2c96027256

Contents?: true

Size: 779 Bytes

Versions: 4

Compression:

Stored size: 779 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

if ENV['COVERAGE'] and RUBY_VERSION =~ /^1.9/
  require 'simplecov'
  require 'simplecov-rcov'

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

require 'solrizer/fedora'
require 'solrizer'
require 'rspec'


# this allows us to unload constants for testing
module Kernel
  # Suppresses warnings within a given block.
  def with_warnings_suppressed
    saved_verbosity = $-v
    $-v = nil
    yield
  ensure
    $-v = saved_verbosity
  end
end


RSpec.configure do |config|
  
  config.mock_with :mocha
  config.color_enabled = true
  
  def fixture(file)
    File.new(File.join(File.dirname(__FILE__), 'fixtures', file))
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solrizer-fedora-3.0.0.pre1 spec/spec_helper.rb
solrizer-fedora-2.3.1 spec/spec_helper.rb
solrizer-fedora-2.3.0 spec/spec_helper.rb
solrizer-fedora-2.2.0 spec/spec_helper.rb