Sha256: f6a3ae3398ab0b92e7cdef807d560df38476374058b74b201f120e162f84226e

Contents?: true

Size: 703 Bytes

Versions: 5

Compression:

Stored size: 703 Bytes

Contents

dir = File.dirname(__FILE__)
$:.unshift(File.join(File.expand_path(dir), "..", "..", "lib"))

require 'rubygems'
require 'test/unit'
require 'acts_as_solr'
require 'activesupport'
require 'mocha'
require 'active_support'
require 'logger'
require File.expand_path("#{dir}/solr_instance")
require File.expand_path("#{dir}/parser_instance")
require 'erb'
require 'ostruct'
require 'mongo_mapper'

if RUBY_VERSION =~ /^1\.9/
  puts "\nRunning the unit test suite doesn't as of yet work with Ruby 1.9, because Mocha hasn't yet been updated to use minitest."
  puts
  exit 1
end

require 'mocha'
gem 'thoughtbot-shoulda'
require 'shoulda'

class Rails
  def self.logger
    Logger.new(StringIO.new)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
acts_as_solr_reloaded-1.6.0 test/unit/test_helper.rb
acts_as_solr_reloaded-1.5.0 test/unit/test_helper.rb
acts_as_solr_reloaded-1.4.0 test/unit/test_helper.rb
acts_as_solr_reloaded-1.3.0 test/unit/test_helper.rb
acts_as_solr_reloaded-1.2.0 test/unit/test_helper.rb