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

Version Path
mongomodel-0.3.3 spec/spec_helper.rb
mongomodel-0.3.2 spec/spec_helper.rb
mongomodel-0.3.1 spec/spec_helper.rb
mongomodel-0.3.0 spec/spec_helper.rb
mongomodel-0.2.20 spec/spec_helper.rb
mongomodel-0.2.19 spec/spec_helper.rb
mongomodel-0.2.18 spec/spec_helper.rb
mongomodel-0.2.17 spec/spec_helper.rb
mongomodel-0.2.16 spec/spec_helper.rb
mongomodel-0.2.15 spec/spec_helper.rb
mongomodel-0.2.14 spec/spec_helper.rb
mongomodel-0.2.13 spec/spec_helper.rb
mongomodel-0.2.12 spec/spec_helper.rb
mongomodel-0.2.11 spec/spec_helper.rb
mongomodel-0.2.10 spec/spec_helper.rb
mongomodel-0.2.9 spec/spec_helper.rb