Sha256: 21b8d6fbead9aea1dbaeda2dcc3be067c5be1c5ba0a4aeb620756f0b2837fca0

Contents?: true

Size: 460 Bytes

Versions: 3

Compression:

Stored size: 460 Bytes

Contents

require 'logger'

plugin_spec_dir = File.dirname(__FILE__)
plugin_lib_dir = File.join(plugin_spec_dir, '..', 'lib')

require File.join(plugin_lib_dir, 'no_peeping_toms')

# Setup ActiveRecord
ActiveRecord::Base.logger = Logger.new(plugin_spec_dir + "/debug.log")
databases = YAML::load(IO.read(plugin_spec_dir + "/db/database.yml"))
ActiveRecord::Base.establish_connection(databases[ENV["DB"] || "sqlite3"])
load(File.join(plugin_spec_dir, "db", "schema.rb"))

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
no_peeping_toms-2.1.3 spec/spec_helper.rb
no_peeping_toms-2.1.2 spec/spec_helper.rb
no_peeping_toms-2.1.0 spec/spec_helper.rb