Skip to content
This repository

The memory_test_fix rails plugin, as a gem.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 fixtures
Octocat-spinner-32 lib
Octocat-spinner-32 rails
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 init.rb
Octocat-spinner-32 memory_test_fix.gemspec
README.md

MemoryTestFix

A simple fix to run your Rails tests with sqlite. From the example by Chris Roos.

Usage

Add the gem to your bundle by adding

gem 'memory_test_fix'

to your Gemfile

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

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

Rails Versions

This gem is compatible with Rails 4 and Rails 3. If you're using Rails 2.3, use version 0.2.2 of this gem. If you're using an even older version of Rails, use version 0.1.3.

Authors

MemoryTestFix is maintained by Matijs van Zuijlen

The following people have contributed to this gem:

  • Original hack by 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.