Sha256: b80d1837d9ab470691020d4f17e96a7903316b41a4a2f485492167bbbc70de1c
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 Bytes
Contents
$: << File.expand_path("lib") $: << File.expand_path("test") require "bundler" Bundler.setup :default, :test ENV["DATABASE_URL"] ||= "postgres:///elefant_test" require "elefant" require "minitest/autorun" Elefant.configure do |c| c.disable_ar = false end class PGTest < Minitest::Test def setup init_db end def teardown reset_db end def init_db c = Elefant::ConnectionAdapter.new c.execute(File.read('./test/fixtures/test_models.sql')) c.disconnect end def reset_db c = Elefant::ConnectionAdapter.new c.execute(File.read('./test/fixtures/teardown.sql')) c.disconnect end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elefant-0.0.1 | test/test_helper.rb |