Sha256: 3d4bde91e43de0d34282ecd2ebbe1ef4732659e5d4b5441f399cf8f14cd41e26

Contents?: true

Size: 599 Bytes

Versions: 1

Compression:

Stored size: 599 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(File.join(spec_dir, "..", "debug.log"))

databases = YAML::load(IO.read("db/database.yml"))
db_info = databases[ENV["DB"] || "test"]
ActiveRecord::Base.establish_connection(db_info)

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
hornsby-0.4.2 spec/spec_helper.rb