From 596ef28dea32baa37b47fa5b82bdc4649ca69382 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Thu, 8 Oct 2015 14:10:00 +0200 Subject: new environment variable LAZAR_ENV for databases and log levels --- test/setup.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/setup.rb') diff --git a/test/setup.rb b/test/setup.rb index ba1b7af..3825282 100644 --- a/test/setup.rb +++ b/test/setup.rb @@ -1,9 +1,8 @@ +ENV["LAZAR_ENV"] = "development" require 'minitest/autorun' require_relative '../lib/lazar.rb' include OpenTox TEST_DIR ||= File.expand_path(File.dirname(__FILE__)) DATA_DIR ||= File.join(TEST_DIR,"data") -Mongoid.configure.connect_to("test") -$mongo = Mongo::Client.new('mongodb://127.0.0.1:27017/test') #$mongo.database.drop -$gridfs = $mongo.database.fs +#$gridfs = $mongo.database.fs -- cgit v1.2.3