Sha256: 012149fede873afa1dbcaff35a5c7df0ebf05b843f09296f82299eb3fee241c2

Contents?: true

Size: 455 Bytes

Versions: 66

Compression:

Stored size: 455 Bytes

Contents

require 'spec_helper'

describe CurationConcerns::LockManager do
  subject { described_class.new(CurationConcerns.config.lock_time_to_live,
                                CurationConcerns.config.lock_retry_count,
                                CurationConcerns.config.lock_retry_delay) }
  describe "lock", unless: $in_travis do
    it "calls the block" do
      expect { |probe| subject.lock('foobar', &probe) }.to yield_with_no_args
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 spec/services/lock_manager_spec.rb
curation_concerns-1.7.7 spec/services/lock_manager_spec.rb
curation_concerns-2.0.0 spec/services/lock_manager_spec.rb
curation_concerns-2.0.0.rc2 spec/services/lock_manager_spec.rb
curation_concerns-1.7.6 spec/services/lock_manager_spec.rb
curation_concerns-1.7.5 spec/services/lock_manager_spec.rb
curation_concerns-1.7.4 spec/services/lock_manager_spec.rb
curation_concerns-1.7.3 spec/services/lock_manager_spec.rb
curation_concerns-1.7.2 spec/services/lock_manager_spec.rb
curation_concerns-2.0.0.rc1 spec/services/lock_manager_spec.rb
curation_concerns-1.7.1 spec/services/lock_manager_spec.rb
curation_concerns-1.7.0 spec/services/lock_manager_spec.rb
curation_concerns-1.7.0.beta1 spec/services/lock_manager_spec.rb
curation_concerns-1.6.3 spec/services/lock_manager_spec.rb
curation_concerns-1.6.2 spec/services/lock_manager_spec.rb
curation_concerns-1.6.1 spec/services/lock_manager_spec.rb
curation_concerns-1.6.0 spec/services/lock_manager_spec.rb
curation_concerns-1.5.0 spec/services/lock_manager_spec.rb
curation_concerns-1.4.0 spec/services/lock_manager_spec.rb
curation_concerns-1.3.3 spec/services/lock_manager_spec.rb