Sha256: 0290504345cd24410e17a57a7692824ebe4475f37634eea35609ea3c64f2fbff

Contents?: true

Size: 324 Bytes

Versions: 1

Compression:

Stored size: 324 Bytes

Contents

require 'memdash/adapters/mongo_mapper'
require 'mongo_mapper'

MongoMapper.connection = Mongo::Connection.new
MongoMapper.database = 'memdash_test'

module MongoMapperHelpers
  def reports_count
    Memdash::Adapters::MongoMapper::Report.count
  end
end

RSpec.configure do |config|
  config.include MongoMapperHelpers
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
memdash-0.1.0 spec/support/adapters/mongo_mapper.rb