Sha256: b639af9d6a82e46ac81301cf911fb494d17375556dbcf8e117c6cfea16928ef9

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 Bytes

Contents

require 'fileutils'
require File.dirname(__FILE__) + '/../../../../spec/spec_helper'

plugin_spec_dir = File.dirname(__FILE__)

ActiveRecord::Base.logger = Logger.new(plugin_spec_dir + "/debug.log")

databases = YAML::load(IO.read(plugin_spec_dir + "/db/database.yml"))

db_info = databases[ENV["DB"] || "sqlite3"]

FileUtils::rm(RAILS_ROOT+"/"+db_info[:dbfile])

ActiveRecord::Base.establish_connection(db_info)

load(File.join(plugin_spec_dir, "db", "schema.rb"))

Version data entries

1 entries across 1 versions & 1 rubygems

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