Sha256: e973d39cc8696c0a4ca3824a18c78501f819e8bd876416cbe094b4bd6564d80a

Contents?: true

Size: 259 Bytes

Versions: 35

Compression:

Stored size: 259 Bytes

Contents

Spec::Runner.configure do |config|
  config.before(:each) do    
    MongoMapper.db_config.each do |db_alias, opt|
      db = MongoMapper.databases[db_alias]
      db.collection_names.each do |name|
        db.collection(name).drop
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
rails-ext-0.3.11 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.10 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.9 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.8 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.6 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.5 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.4 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.3 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.2 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.1 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.2.21 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.2.20 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.2.19 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.2.18 lib/mongo_mapper_ext/spec_helper.rb