Sha256: 57f927c5284a7fe6ede64bbad2041cce53f038d93dd2d0e0734620ec89ebcec2
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
$:.unshift(File.dirname(__FILE__) + '/../lib') RAILS_ROOT = File.dirname(__FILE__) require 'rubygems' require 'test/unit' require 'active_record' require 'shoulda' require 'mocha' require "#{File.dirname(__FILE__)}/../init" 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']) ActiveRecord::Base.pluralize_table_names = false load(File.dirname(__FILE__) + "/schema.rb") if File.exist?(File.dirname(__FILE__) + "/schema.rb") class Test::Unit::TestCase end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shah-seed_data-0.5.1 | test/test_helper.rb |