Skip to content
This repository
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 30 lines (22 sloc) 0.559 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
require 'rubygems'

require 'test/unit'

require 'active_record'
require 'active_record/fixtures'
require 'active_support'
require 'active_support/test_case'
require 'action_controller'

require 'indexer'

ActiveRecord::Base.establish_connection(
  :adapter => "sqlite3",
  :database => ":memory:"
)

class Rails
  def self.root
    "test/fixtures/"
  end
end

load 'test/fixtures/schema.rb'

# Load models
Dir['test/fixtures/app/models/**/*.rb'].each { |f| require f }

# load controllers
Dir['test/fixtures/app/controllers/**/*.rb'].each { |f| require f }
Something went wrong with that request. Please try again.