Seed the in-memory test db.
This commit is contained in:
parent
022c733b6d
commit
3b84b57a02
1 changed files with 1 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ require File.expand_path("../../config/environment", __FILE__)
|
||||||
|
|
||||||
if Rails.configuration.database_configuration['test']['database'] == ':memory:'
|
if Rails.configuration.database_configuration['test']['database'] == ':memory:'
|
||||||
load "#{Rails.root}/db/schema.rb"
|
load "#{Rails.root}/db/schema.rb"
|
||||||
|
load "#{Rails.root}/db/seeds.rb"
|
||||||
end
|
end
|
||||||
|
|
||||||
require 'rspec/rails'
|
require 'rspec/rails'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue