Created
November 16, 2012 22:05
-
-
Save brundage/4091314 to your computer and use it in GitHub Desktop.
Use sqlite in-memory database for rspec testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test: | |
adapter: sqlite3 | |
encoding: utf8 | |
pool: 5 | |
timeout: 5000 | |
database: ":memory:" | |
verbosity: quiet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rspec/rails' | |
silence_stream STDOUT do | |
load "#{Rails.root}/db/schema.rb" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍