Skip to content

Instantly share code, notes, and snippets.

@ilpoldo
Created January 13, 2010 15:53
Show Gist options
  • Save ilpoldo/276297 to your computer and use it in GitHub Desktop.
Save ilpoldo/276297 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'active_support'
require 'active_record'
TEST_DATABASE_FILE = File.join(File.dirname(__FILE__), '..', 'test.sqlite3')
File.unlink(TEST_DATABASE_FILE) if File.exist?(TEST_DATABASE_FILE)
ActiveRecord::Base.establish_connection(
"adapter" => "sqlite3", "database" => TEST_DATABASE_FILE
)
# RAILS_DEFAULT_LOGGER = Logger.new(File.join(File.dirname(__FILE__), "debug.log"))
load(File.dirname(__FILE__) + '/schema.rb')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment