Sha256: af470cb5d713af2ff95339c9b9097375fdf740cca3c8055a88c2324a7698a0bd
Contents?: true
Size: 797 Bytes
Versions: 7
Compression:
Stored size: 797 Bytes
Contents
require "bundler/setup" require "pg_audit_log" require "with_model" connection = nil begin ActiveRecord::Base.establish_connection(:adapter => 'postgresql', :database => 'pg_audit_log_test', :min_messages => 'warning') connection = ActiveRecord::Base.connection connection.execute("SELECT 1") rescue PGError => e puts "-" * 80 puts "Unable to connect to database. Please run:" puts puts " createdb pg_audit_log_test" puts "-" * 80 raise e end PgAuditLog::Entry.uninstall PgAuditLog::Entry.install PgAuditLog::Function.install RSpec.configure do |config| config.mock_with :rspec config.extend WithModel config.after(:each) do ActiveRecord::Base.connection.reconnect! end end
Version data entries
7 entries across 7 versions & 1 rubygems