Sha256: 209adef531c398d9e2445f8a004a6c18a12c5f6d740685773375a9fe98c3415a

Contents?: true

Size: 583 Bytes

Versions: 1

Compression:

Stored size: 583 Bytes

Contents

require 'fileutils'
require 'activerecord'

spec_dir = File.dirname(__FILE__)
Dir.chdir spec_dir

ActiveRecord::Base.logger = Logger.new(spec_dir + "/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/autorun'
require '../lib/hornsby'
require 'db/fruit'

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

Version data entries

1 entries across 1 versions & 1 rubygems

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