mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-23 23:54:07 +01:00
Updated to latest memory_test_fix plugin
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@684 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
09d33fa0c1
commit
9ac5d9ff72
1 changed files with 4 additions and 2 deletions
|
|
@ -1,8 +1,10 @@
|
|||
|
||||
# Update: Looks for the SQLite and SQLite3 adapters for
|
||||
# Update: Looks for the SQLite and SQLite3 adapters for
|
||||
# compatibility with Rails 1.2.2 and also older versions.
|
||||
def in_memory_database?
|
||||
if ENV["RAILS_ENV"] == "test" and Rails::Configuration.new.database_configuration['test']['database'] == ':memory:'
|
||||
if ENV["RAILS_ENV"] == "test" and
|
||||
(Rails::Configuration.new.database_configuration['test']['database'] == ':memory:' or
|
||||
Rails::Configuration.new.database_configuration['test']['dbfile'] == ':memory:')
|
||||
begin
|
||||
if ActiveRecord::Base.connection.class == ActiveRecord::ConnectionAdapters::SQLite3Adapter
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue