Sha256: 66a7bcedf54de1e44959c9da024e711d8050200ac0b1ffa01197dad63d9d096b

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rubygems'
require 'active_record'
require 'better_delegation'
require 'spec'
require 'spec/autorun'

spec_dir = File.dirname(__FILE__)
ActiveRecord::Base.logger = Logger.new(spec_dir + "/debug.log")

databases = YAML::load(IO.read(spec_dir + "/db/database.yml"))
ActiveRecord::Base.establish_connection(databases[ENV["DB"] || "sqlite3"])
load(File.join(spec_dir, "db", "schema.rb"))

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
better_delegation-1.0.0 spec/spec_helper.rb