| allow specification of the DB to run the specs on on the command line - reporta… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit edc362ddfc9b694ec81ea531bf45bce1c732bc31 | |
| parent 7b3a0cf5ab0ae5ac4783e58f17349e5e5b0c5bdf | |
| Author: Marco Otte-Witte <[email protected]> | |
| 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(-) | |
| --- | |
| 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'… | |
| databases = YAML::load(IO.read(File.join(File.dirname(__FILE__), 'db', 'databa… | |
| -ActiveRecord::Base.establish_connection(databases['sqlite3']) | |
| +ActiveRecord::Base.establish_connection(databases[ENV['DB'] || 'sqlite3']) | |
| load(File.join(File.dirname(__FILE__), 'db', 'schema.rb')) |