https://github.com/fredwu/slurp
Switch to an in-memory sqlite database in Rails for speedy tests
https://github.com/fredwu/slurp
Last synced: 7 months ago
JSON representation
Switch to an in-memory sqlite database in Rails for speedy tests
- Host: GitHub
- URL: https://github.com/fredwu/slurp
- Owner: fredwu
- License: mit
- Created: 2012-11-30T01:48:52.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-11-30T01:49:46.000Z (over 13 years ago)
- Last Synced: 2025-01-03T12:35:18.551Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 74.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Slurp
Slurp allows you to temporarily switch to using an in-memory sqlite database with Rails without affecting your main database configuration. It comes in useful when you're doing test driven development and need the tests to run as fast as possible.
## Installation
Add this line to your application's Gemfile:
gem 'slurp'
And then execute:
$ bundle
Or install it yourself as:
$ gem install slurp
## Usage
Prepend your command with `SLURP=1` to get your database loaded in memory.
$ SLURP=1 rspec spec/