Sha256: 296572a2aab5f1b558318aa04798f9ef390abe11b5d0b264e3cc37b8677e7b52

Contents?: true

Size: 488 Bytes

Versions: 5

Compression:

Stored size: 488 Bytes

Contents

require 'rubygems'
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 = { 'database' => 'mongomodel-specs' }
  end
  
  config.before(:each) do
    MongoModel.database.collections.each { |c| c.drop }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mongomodel-0.1.5 spec/spec_helper.rb
mongomodel-0.1.4 spec/spec_helper.rb
mongomodel-0.1.3 spec/spec_helper.rb
mongomodel-0.1.1 spec/spec_helper.rb
mongomodel-0.1 spec/spec_helper.rb