Sha256: ab93ed2ba7bc33b963de301b6c0ac2d12d7a9602f7df1880dad220108ccec285
Contents?: true
Size: 454 Bytes
Versions: 54
Compression:
Stored size: 454 Bytes
Contents
require "spec_helper" describe "Simple::SQL.locked" do xit 'acquires and releases an advisory lock' do # pending: "This code was manually tested" one = Simple::SQL.locked(4711) do Simple::SQL.ask "SELECT 1" end expect(one).to eq(1) end xit 'releases the lock after an exception' do # pending: "This code was manually tested" begin Simple::SQL.locked(4711) do raise "HU" end rescue end end end
Version data entries
54 entries across 54 versions & 1 rubygems