Sha256: ff05149bdf07a3c85e800df7c8f3e888664cbdb5b428ad43cbfea84a285a7507
Contents?: true
Size: 555 Bytes
Versions: 4
Compression:
Stored size: 555 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rubygems' require 'active_record' require 'paranoid' require 'yaml' require 'spec' def connect(environment) conf = YAML::load(File.open(File.dirname(__FILE__) + '/database.yml')) ActiveRecord::Base.establish_connection(conf[environment]) end # Open ActiveRecord connection connect('test') original_stdout = $stdout $stdout = StringIO.new begin load(File.dirname(__FILE__) + "/schema.rb") ensure $stdout = original_stdout end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
paranoid-0.0.4 | spec/spec_helper.rb |
paranoid-0.0.3 | spec/spec_helper.rb |
paranoid-0.0.2 | spec/spec_helper.rb |
paranoid-0.0.1 | spec/spec_helper.rb |