From 0a5f08878f92d94cc70cea0420df1fe0f0195792 Mon Sep 17 00:00:00 2001 From: Chrisbr Date: Sat, 10 May 2014 16:45:51 +0200 Subject: [PATCH] Switch back to sqlite test db http://stackoverflow.com/questions/19493153/rails-4-use-sqlite-memory-db-for-selenium-driven-tests --- config/database.yml.example | 2 +- spec/spec_helper.rb | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/config/database.yml.example b/config/database.yml.example index ba386c23..51a4dd45 100644 --- a/config/database.yml.example +++ b/config/database.yml.example @@ -14,7 +14,7 @@ development: # Do not set this db to the same as development or production. test: adapter: sqlite3 - database: ":memory:" + database: db/test.sqlite3 pool: 5 timeout: 5000 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4a3c03f8..da3d3021 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -4,10 +4,6 @@ Coveralls.wear!('rails') ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../../config/environment', __FILE__) -if Rails.configuration.database_configuration['test']['database'] == ':memory:' - load "#{Rails.root}/db/schema.rb" -end - require 'rspec/rails' # Requires supporting ruby files with custom matchers and macros, etc, in