Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (22 sloc) 559 Bytes
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 }