Sha256: a1f83e2776e2337aec5c36bdea62f34f66146594653e509435354097854b5e28

Contents?: true

Size: 455 Bytes

Versions: 2

Compression:

Stored size: 455 Bytes

Contents

require "yaml"
require "logger"
require "active_record"

dbconfig = YAML.load_file(path("config/database.yml"))["test"]
logger = Logger.new path("log/test.log")

ActiveRecord::Base.establish_connection dbconfig
ActiveRecord::Base.time_zone_aware_attributes = true
ActiveRecord::Base.default_timezone = :local
ActiveRecord::Base.logger = logger

DataMapper.setup :default, dbconfig.merge("adapter" => "mysql")
DataMapper.logger = logger

CachedRecord.setup

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cached_record-0.1.1 test/test_helper/setup.rb
cached_record-0.1.0 test/test_helper/setup.rb