Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Pascal Lindelauf plindelauf

🎯
Focusing
  • The Netherlands
View GitHub Profile
View paranoia_test.rb
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
You can’t perform that action at this time.