Sha256: d326a2cd61802050af72e9fb79f28825c9de3dc3776e5419a18a70d527f153b3

Contents?: true

Size: 411 Bytes

Versions: 5

Compression:

Stored size: 411 Bytes

Contents

require 'spec_helper'

describe Sufia::LockManager do
  subject { described_class.new(Sufia.config.lock_time_to_live,
                                Sufia.config.lock_retry_count,
                                Sufia.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

5 entries across 5 versions & 1 rubygems

Version Path
sufia-6.7.0 spec/services/lock_manager_spec.rb
sufia-6.6.1 spec/services/lock_manager_spec.rb
sufia-6.6.0 spec/services/lock_manager_spec.rb
sufia-6.5.0 spec/services/lock_manager_spec.rb
sufia-6.4.0 spec/services/lock_manager_spec.rb