Sha256: 2e0953b8b6617975118b4cdd6ba2cd90a2a8384667059056dfb227c4c443cb70

Contents?: true

Size: 293 Bytes

Versions: 4

Compression:

Stored size: 293 Bytes

Contents

require 'spec_helper'
module Alf
  class Adapter
    describe Connection, "lock" do
      let(:conn){ Connection.new(nil) }

      subject{ conn.lock(:name, :exclusive){ @seen = true } }

      it 'yields the block' do
        subject
        @seen.should be_true
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-adapter/connection/test_lock.rb
alf-core-0.14.0 spec/unit/alf-adapter/connection/test_lock.rb
alf-core-0.13.1 spec/unit/alf-adapter/connection/test_lock.rb
alf-core-0.13.0 spec/unit/alf-adapter/connection/test_lock.rb