Sha256: 6d8c8a140a5fc70710f7171d3f1b9df5ce8d79cd2474544b68539cc4d704cd20

Contents?: true

Size: 257 Bytes

Versions: 7

Compression:

Stored size: 257 Bytes

Contents

require 'spec_helper'
module Alf
  module Sequel
    describe Connection, 'lock' do

      subject{ sap.lock(:suppliers, :exclusive){ @seen = true } }

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

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alf-sequel-0.16.3 spec/connection/test_lock.rb
alf-sequel-0.16.2 spec/connection/test_lock.rb
alf-sequel-0.16.1 spec/connection/test_lock.rb
alf-sequel-0.16.0 spec/connection/test_lock.rb
alf-sequel-0.15.0 spec/connection/test_lock.rb
alf-sequel-0.14.0 spec/connection/test_lock.rb
alf-sequel-0.13.0 spec/connection/test_lock.rb