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
crystal-ext-0.0.3 lib/mongo_mapper_ext/spec_helper.rb
crystal-ext-0.0.2 lib/mongo_mapper_ext/spec_helper.rb
crystal-ext-0.0.1 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.29 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.28 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.27 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.25 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.24 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.23 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.22 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.21 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.20 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.19 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.18 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.17 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.16 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.15 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.14 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.13 lib/mongo_mapper_ext/spec_helper.rb
rails-ext-0.3.12 lib/mongo_mapper_ext/spec_helper.rb