Sha256: d221fb1dbe0d7a9d1e98df583bfaafab08f458582cfff34708f31a9cffe62e5e

Contents?: true

Size: 857 Bytes

Versions: 1

Compression:

Stored size: 857 Bytes

Contents

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

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

  let(:collection1) { my_moped_collection }
  let(:collection2) { other_moped_collection }
  let(:collection3) { another_moped_collection }

  configure_for_moped

  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/moped_driver_spec.rb