1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/spec/spec_helper.rb
2008-01-03 23:41:43 -08:00

19 lines
No EOL
519 B
Ruby

require 'rubygems'
require 'spec'
require File.join(File.dirname(__FILE__), '..', 'lib', 'sql_algebra')
require File.join(File.dirname(__FILE__), 'spec_helpers', 'be_like')
ActiveRecord::Base.configurations = {
'sql_algebra_test' => {
:adapter => 'mysql',
:username => 'root',
:password => 'password',
:encoding => 'utf8',
:database => 'sql_algebra_test',
},
}
ActiveRecord::Base.establish_connection 'sql_algebra_test'
Spec::Runner.configure do |config|
config.include(BeLikeMatcher)
end