allow specification of the DB to run the specs on on the command line - reportable - Fork of reportable required by WarVox, from hdm/reportable.
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit edc362ddfc9b694ec81ea531bf45bce1c732bc31
 (DIR) parent 7b3a0cf5ab0ae5ac4783e58f17349e5e5b0c5bdf
 (HTM) Author: Marco Otte-Witte <marco.otte-witte@simplabs.com>
       Date:   Sat,  6 Mar 2010 11:14:47 +0100
       
       allow specification of the DB to run the specs on on the command line
       
       Diffstat:
         M spec/boot.rb                        |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/spec/boot.rb b/spec/boot.rb
       @@ -21,5 +21,5 @@ FileUtils.mkdir_p File.join(File.dirname(__FILE__), 'log')
        ActiveRecord::Base.logger = Logger.new(File.join(File.dirname(__FILE__), 'log', 'spec.log'))
        
        databases = YAML::load(IO.read(File.join(File.dirname(__FILE__), 'db', 'database.yml')))
       -ActiveRecord::Base.establish_connection(databases['sqlite3'])
       +ActiveRecord::Base.establish_connection(databases[ENV['DB'] || 'sqlite3'])
        load(File.join(File.dirname(__FILE__), 'db', 'schema.rb'))