Sha256: 15f37224aabebeb7c803a0483be086a41011eed847a5830087c753f930f441f9

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 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|
  Hornsby.configure_rspec(config, :filename => File.join('hornsby_scenario.rb'), :scenarios => :big_cherry)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sinsiliux-hornsby-0.3.0 spec/spec_helper.rb