Sha256: 55f2ffc8b96197f5fb1f344dc425dc475fc8bb0b8c8882fb53a8e8e39aa9a985

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 Bytes

Contents

require 'rspec'
require 'mongodb/graphite/agent/collection_size_calculator'
require 'mongo'

describe 'Collection size calculator' do
  it 'should calculate the number of documents in all db collections' do
    collection_size_calculator = Mongodb::Graphite::Agent::CollectionSizeCalculator.new(Mongo::MongoClient.new())
    collection_size_calculator.calculate.should have_at_least(1).items
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongodb-graphite-agent-0.1.3 spec/collection_size_calculator_spec.rb