Sha256: eb159803ee5d1eb7ce72cb85d71f446b8278bb8cc371ffa7b78634a48e376b55
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 Bytes
Contents
require 'fileutils' require 'activerecord' begin require 'mysqlplus' rescue LoadError end spec_dir = File.dirname(__FILE__) Dir.chdir spec_dir ActiveRecord::Base.logger = Logger.new("debug.log") databases = YAML::load(IO.read("db/database.yml")) db_info = databases[ENV["DB"] || "test"] ActiveRecord::Base.establish_connection(db_info) load(File.join("db", "schema.rb")) require 'spec/autorun' require '../lib/hornsby' require 'db/fruit' require 'db/tree' Spec::Runner.configure do |config| config.enable_hornsby(:root => File.expand_path(File.join(spec_dir, '..')), :scenarios => :big_cherry) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinsiliux-hornsby-0.4.1 | spec/spec_helper.rb |