Plugins - Memory Test Fix

StarAdd to favorites

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!

You can also adjust the verbosity of the output:

test:

  adapter: sqlite3
  database: ":memory:"
  verbosity: silent

Authors

Chris Roos

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

Verbosity patch by Kakutani Shintaro

Geoffrey Grosenbach

http://topfunky.net/svn/plugins/memory_test_fix/

  • Currently 4.2/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Testing

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?