Sha256: af530d71759ce298d93d9cbc34752d101545219c2654786534ccd5552b966f3a

Contents?: true

Size: 550 Bytes

Versions: 9

Compression:

Stored size: 550 Bytes

Contents

require 'minitest_helper'

describe "with_advisory_lock.concern" do
  it "adds with_advisory_lock to ActiveRecord classes" do
    assert Tag.respond_to?(:with_advisory_lock)
  end

  it "adds with_advisory_lock to ActiveRecord instances" do
    assert Label.new.respond_to?(:with_advisory_lock)
  end

  it "adds advisory_lock_exists? to ActiveRecord classes" do
    assert Tag.respond_to?(:advisory_lock_exists?)
  end

  it "adds advisory_lock_exists? to ActiveRecord classes" do
    assert Label.new.respond_to?(:advisory_lock_exists?)
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
with_advisory_lock-4.6.0 test/concern_test.rb
with_advisory_lock-4.0.0 test/concern_test.rb
with_advisory_lock-3.2.0 test/concern_test.rb
with_advisory_lock-3.1.1 test/concern_test.rb
with_advisory_lock-3.1.0 test/concern_test.rb
with_advisory_lock-3.0.0 test/concern_test.rb
with_advisory_lock-2.0.0 test/concern_test.rb
with_advisory_lock-1.0.0 test/concern_test.rb
with_advisory_lock-0.0.11 test/concern_test.rb