Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Memory Test Fix

Memory Test Fix

A simple fix to run tests with sqlite. From example at

http://blog.seagul.co.uk/articles/2006/02/08/in-memory-sqlite-database-for-rails-testing

In your database.yml, use

test:
  adapter: sqlite3
  database: ":memory:"

It runs much faster!

== Authors

Chris Roos

adapted by Geoffrey Grosenbach, http://nubyonrails.com

NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly