Sha256: 221f89a2de0a72165dbee1c4194befe3b70e8f0bea9501acda75f4cbfa1aa3c2

Contents?: true

Size: 839 Bytes

Versions: 1

Compression:

Stored size: 839 Bytes

Contents

require 'spec_helper'
require 'mongo-lock/drivers/mongo'

describe Mongo::Lock::Drivers::Mongo do

  let(:collection1) { my_collection }
  let(:collection2) { other_collection }
  let(:collection3) { another_collection }

  configure_for_mongo

  it_behaves_like "MongoLock driver that can aquire locks"
  it_behaves_like "MongoLock driver that can find if a lock is acquired"
  it_behaves_like "MongoLock driver that can find if a lock is available"
  it_behaves_like "MongoLock driver that can clear expired locks"
  it_behaves_like "MongoLock driver that can ensure indexes"
  it_behaves_like "MongoLock driver that can find if a lock have expired"
  it_behaves_like "MongoLock driver that can extend locks"
  it_behaves_like "MongoLock driver that can release all locks"
  it_behaves_like "MongoLock driver that can release locks"

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongo-lock-1.2.0 spec/mongo_driver_spec.rb