Sha256: c8e8cf63a2b2dac8582128abdcfd5dcb0f62356888f7faeadf26269915b89e9a
Contents?: true
Size: 543 Bytes
Versions: 5
Compression:
Stored size: 543 Bytes
Contents
# this file is automatically required when you run `assert` # put any test helpers here # add the root dir to the load path ROOT_PATH = File.expand_path("../..", __FILE__) $LOAD_PATH.unshift(ROOT_PATH) # require pry for debugging (`binding.pry`) require 'pry' require 'fileutils' TESTDB_PATH = File.join(ROOT_PATH, 'tmp', 'testdb') FileUtils.mkdir_p TESTDB_PATH require 'logger' require 'ardb' Ardb.configure do |c| c.root_path = TESTDB_PATH c.logger = Logger.new($stdout) c.db.adapter 'postgresql' c.db.database 'ardbtest' end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ardb-0.4.1 | test/helper.rb |
ardb-0.4.0 | test/helper.rb |
ardb-0.3.0 | test/helper.rb |
ardb-0.2.0 | test/helper.rb |
ardb-0.1.0 | test/helper.rb |