spec/initialise_spec.rb in mongo-lock-1.1.0 vs spec/initialise_spec.rb in mongo-lock-1.1.1
- old
+ new
@@ -17,16 +17,15 @@
it "allows override of the class configuration" do
Mongo::Lock.configure limit: 3
lock = Mongo::Lock.new 'my_lock', limit: 4
expect(lock.configuration.limit).to be 4
-
end
context "when the key is already acquired by this owner" do
it "acquires that lock" do
- collection.insert key: 'my_lock', owner: 'spence', expires_at: 1.minute.from_now
+ my_collection.insert key: 'my_lock', owner: 'spence', expires_at: 1.minute.from_now
expect(lock.acquired?).to be_true
end
end