Sha256: 989fea006a86e033c160e03d677884c589053764b54aeecc0b30778b0cd7189c

Contents?: true

Size: 592 Bytes

Versions: 3

Compression:

Stored size: 592 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'

Spec::Runner.configure do |config|
  Hornsby.configure_rspec(config, :filename => File.join('hornsby_scenario.rb'), :scenarios => :big_cherry)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sinsiliux-hornsby-0.2.3 spec/spec_helper.rb
sinsiliux-hornsby-0.2.4 spec/spec_helper.rb
sinsiliux-hornsby-0.2.5 spec/spec_helper.rb