spec/boot.rb in reportable-1.0.1 vs spec/boot.rb in reportable-1.0.2

- old
+ new

@@ -19,7 +19,7 @@ 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'))