Skip to content

Instantly share code, notes, and snippets.

View plindelauf's full-sized avatar
🎯
Focusing

Pascal Lindelauf plindelauf

🎯
Focusing
  • The Netherlands
View GitHub Profile
require 'test/unit'
require 'active_record'
require File.expand_path(File.dirname(__FILE__) + '/../lib/paranoia')
DB_FILE = 'tmp/test_db'
FileUtils.mkdir_p File.dirname(DB_FILE)
FileUtils.rm_f DB_FILE
ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => DB_FILE