Skip to content

Instantly share code, notes, and snippets.

@brundage
Created November 16, 2012 22:05
Show Gist options
  • Save brundage/4091314 to your computer and use it in GitHub Desktop.
Save brundage/4091314 to your computer and use it in GitHub Desktop.
Use sqlite in-memory database for rspec testing
test:
adapter: sqlite3
encoding: utf8
pool: 5
timeout: 5000
database: ":memory:"
verbosity: quiet
require 'rspec/rails'
silence_stream STDOUT do
load "#{Rails.root}/db/schema.rb"
end
@maltoe
Copy link

maltoe commented May 4, 2016

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment