Skip to content
Newer
Older
100644 16 lines (12 sloc) 497 Bytes
fee1078
jonathan authored
1 require 'test/unit'
2
3 begin
0dbda2e
jonathan authored
4 require File.dirname(__FILE__) + '/../../../../config/boot'
5 require 'active_record'
fee1078
jonathan authored
6 rescue LoadError
7 require 'rubygems'
3599db9 @ratnikov Fixed the database to use sqlite3 for testing
ratnikov authored
8 require 'active_record'
fee1078
jonathan authored
9 end
10
11 require File.dirname(__FILE__) + '/../lib/active_record/base_without_table'
12
13 config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
14 ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + '/debug.log')
3599db9 @ratnikov Fixed the database to use sqlite3 for testing
ratnikov authored
15 ActiveRecord::Base.establish_connection(config[ENV['DB'] || 'sqlite3'])
Something went wrong with that request. Please try again.