Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: c364dcea3b
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (17 sloc) 0.707 kB
ENV['RAILS_ENV'] = 'test'
ENV['RAILS_ROOT'] ||= File.dirname(__FILE__) + '/../../../..'
require 'test/unit'
require File.expand_path(File.join(ENV['RAILS_ROOT'], 'config/environment.rb'))
# require 'rubygems'
# require 'active_support'
# require 'active_support/test_case'
# require 'active_record'
# require File.dirname(__FILE__) + '/../init'
def load_schema
config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
db_adapter = 'mysql'
ActiveRecord::Base.establish_connection(config[db_adapter])
load(File.dirname(__FILE__) + "/schema.rb")
require File.dirname(__FILE__) + '/../init.rb'
end
Jump to Line
Something went wrong with that request. Please try again.