Sha256: 99aaf654b45b0bcd3028ca382427aa10cae95b4351e71d9c7a9c3a555b64e0fa
Contents?: true
Size: 507 Bytes
Versions: 4
Compression:
Stored size: 507 Bytes
Contents
adapter = RUBY_PLATFORM == 'java' ? 'jdbc/mysql' : 'mysql2' require adapter require 'active_record' require "kindergarten/orm/governess" logger = Logger.new File.expand_path( "../support/log/test.log", __FILE__) logger.formatter = proc { |severity, datetime, progname, msg| "[#{severity}] #{msg}\n" } ActiveRecord::Base.logger = logger ActiveRecord::Base.establish_connection( :adapter => adapter.gsub('/', ''), :database => 'kindergarten_test', :username => 'root', :encoding => 'utf8' )
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kindergarten-0.2.1 | spec/orm_helper.rb |
kindergarten-0.2.0 | spec/orm_helper.rb |
kindergarten-0.1.1 | spec/orm_helper.rb |
kindergarten-0.1.0 | spec/orm_helper.rb |