Created
January 15, 2010 19:38
-
-
Save ilpoldo/278344 to your computer and use it in GitHub Desktop.
Runs rspec test database in memory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reloads the db every time in memory. Faster (30%)!! | |
# Drop this file in spec/support | |
ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") | |
ActiveRecord::Migration.verbose = false | |
ActiveRecord::Migrator.up('db/migrate') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment