diff options
author | Christoph Helma <helma@in-silico.ch> | 2015-10-08 10:43:43 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2015-10-08 10:43:43 +0200 |
commit | 1a56148aadef031c4f487bc23fda43f4ac5b7369 (patch) | |
tree | 3555c5883ed0c292b105c40c185ebba3e5bd4e3e /test/setup.rb | |
parent | 394d564699756288569169ff3e198d6d7702f092 (diff) | |
parent | e3217075b602a950a0ee995fcfa731d97b5ba3eb (diff) |
new master branch
Diffstat (limited to 'test/setup.rb')
-rw-r--r-- | test/setup.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/setup.rb b/test/setup.rb new file mode 100644 index 0000000..ba1b7af --- /dev/null +++ b/test/setup.rb @@ -0,0 +1,9 @@ +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 |