Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (22 sloc) 0.559 kB
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 }
Jump to Line
Something went wrong with that request. Please try again.