Skip to content
The memory_test_fix rails plugin, as a gem
Ruby
Find file
Latest commit 1c87a01 Sep 26, 2015 @mvz Add clean and clobber tasks
Failed to load latest commit information.
fixtures Add spring-enabled binstubs May 7, 2015
lib
spec Bring use of migrations under test Sep 6, 2014
test Add integration tests for using binstubs with Spring May 7, 2015
.gitignore Ignore generated documentation files Sep 7, 2014
.rspec Use RSpec for unit tests Sep 6, 2014
.rubocop.yml
Changelog.md Prepare version 1.3.0 for release Sep 7, 2015
Gemfile Add gem source to make Bundler find remote gems Apr 7, 2014
README.md Update list of supported Rails versions Oct 14, 2014
Rakefile Add clean and clobber tasks Sep 26, 2015
memory_test_fix.gemspec Prepare version 1.3.0 for release Sep 7, 2015

README.md

MemoryTestFix

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

Status

Dependency Status Build Status Code Climate

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

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

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

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

Rails Versions

This gem is compatible with Rails 4. If you're using an older version of Rails, your first priority should be upgrading Rails. If that's not an option, you can use version 1.2.2 of this gem with Rails 3.2. If you're using Rails 3.1 or 3.0, use version 1.1.0 of this gem. If you're using Rails 2.3, use version 0.2.2. If you're using an even older version of Rails, use version 0.1.3.

Authors

The original hack this gem is based on was created by Chris Roos.

The hack was adapted as a Rails plugin by Geoffrey Grosenbach.

The following people have contributed:

  • Kakutani Shintaro
  • Matijs van Zuijlen
  • Erik Hanson & Matt Scilipoti
  • Greg Weber
  • Stephan Zalewski

MemoryTestFix is maintained by Matijs van Zuijlen

Something went wrong with that request. Please try again.