Skip to content


Subversion checkout URL

You can clone with
Download ZIP
the memory_test_fix rails plugin, as a gem.
Branch: master
Pull request Compare This branch is 5 commits ahead, 90 commits behind mvz:master.

* use Rails::Railtie

* added migrate option
latest commit 8a26672a66
@stepahn authored
Failed to load latest commit information.
lib * use Rails::Railtie
.gitignore Ignore built gems and vim swap files * use Rails::Railtie
Rakefile initial commit
about.yml initial commit
memory_test_fix.gemspec * use Rails::Railtie


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

Add the gem to your bundle by adding

  gem 'memory_test_fix'

to your Gemfile

In your database.yml, use:

    adapter: sqlite3
    database: ":memory:"

It runs much faster!

You can also adjust the verbosity of the output:

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

To use rails migrations instead of loading db/schema.rb

    adapter: sqlite3
    database: ":memory:"
    migrate: true

You can also use this with other (testing) environments, not just 'test'.

Rails Versions

Due to incompatibilities in the loading of gem plugins by Rails, this gem only works with Rails 3 starting from version 0.2.0. If you're using an older version of Rails, use the 0.1.x version of this gem.


Chris Roos

Adapted by Geoffrey Grosenbach,

Verbosity patch by Kakutani Shintaro

Adapted as GemPlugin by Matijs van Zuijlen

Support for environments besides 'test' by Erik Hanson & Matt Scilipoti

Support for Rails 3 by Greg Weber

Fix for Rails 3.2 by Stephan Zalewski

Something went wrong with that request. Please try again.