Sha256: 6a615ed8985c5a552494a2382a8086dfc5fae250a2307b71c8aca3bf8b0872e6
Contents?: true
Size: 703 Bytes
Versions: 2
Compression:
Stored size: 703 Bytes
Contents
require 'rubygems' require 'fileutils' require 'activerecord' require 'test/unit' require 'active_record/test_case' begin require 'mysqlplus' rescue LoadError end spec_dir = File.join(File.dirname(__FILE__), '..', 'spec') ActiveRecord::Base.logger = Logger.new("debug.log") databases = YAML::load(IO.read(spec_dir + "/db/database.yml")) db_info = databases[ENV["DB"] || "test"] ActiveRecord::Base.establish_connection(db_info) load(File.join(spec_dir, "db", "schema.rb")) require spec_dir + '/../lib/hornsby' require spec_dir + '/db/fruit' require spec_dir + '/db/tree' class ActiveSupport::TestCase enable_hornsby :root => File.join(File.dirname(__FILE__), '..'), :scenarios => :big_cherry end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinsiliux-hornsby-0.4.0 | test/test_helper.rb |
sinsiliux-hornsby-0.4.1 | test/test_helper.rb |