Sha256: 86bbe154d5979c3e00d8162ad656e9db223deda0a3c04bbbbe1149e9bd301cbd

Contents?: true

Size: 587 Bytes

Versions: 2

Compression:

Stored size: 587 Bytes

Contents

require File.expand_path('../spec_helper', __FILE__)
require File.expand_path('../mock/position', __FILE__)

include DCA::Mock

describe DCA::MongoStorage do
  let(:connection) { @connection ||= DCA::MongoStorage.establish_connection APP_CONFIG[:mongo_db] }
  let(:position) { MongoSearchPosition.new :base_id => '0', :checksum => '0'}
  let(:storage) { @storage ||= DCA::MongoStorage.new connection, position.class, :collection => 'test' }

  before :all do
    connection
  end

  after :all do
    connection.drop_database storage.database.name
  end

  it_behaves_like 'storage'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dca-0.1.1 spec/mongo_storage_spec.rb
dca-0.1.0 spec/mongo_storage_spec.rb