Sha256: a122dab9a9428152c9f3817d69390c2fe168c4c70f6c219e31d9c12a0ee181ed
Contents?: true
Size: 912 Bytes
Versions: 1
Compression:
Stored size: 912 Bytes
Contents
$:.unshift(File.dirname(__FILE__) + '/../lib') RAILS_ROOT = File.dirname(__FILE__) require 'rubygems' require 'yaml' require 'rails' require 'rails/test_help' require 'active_record' require 'minitest/autorun' config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml')) ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log") ActiveRecord::Base.establish_connection(config[ENV['DB'] || 'sqlite3']) load(File.dirname(__FILE__) + "/schema.rb") if File.exist?(File.dirname(__FILE__) + "/schema.rb") module Rails class Cache @@data = {} class << self def fetch(key, options = {}) @@data[key] ||= yield end def write(key, value) @@data[key] = value end def read(key) @@data[key] end end end def self.cache return Cache end end require "#{File.dirname(__FILE__)}/../init"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_recommendable-0.0.2 | test/test_helper.rb |