Sha256: e68cc1b4c7fd14d8af3573af50a73696d83c13da3eadba2ced6a6959398caa8a
Contents?: true
Size: 522 Bytes
Versions: 16
Compression:
Stored size: 522 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'spec' # Require MongoModel library require File.dirname(__FILE__) + '/../lib/mongomodel' # Require spec helpers Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each { |f| require f } Spec::Runner.configure do |config| include SpecsFor include DefineClass config.before(:all) do MongoModel.configuration.use_database('mongomodel-specs') end config.before(:each) do MongoModel.database.collections.each { |c| c.drop rescue c.remove } end end
Version data entries
16 entries across 16 versions & 1 rubygems