Sha256: 97b52ab2d5384d4fe531316fa4530f9744cd1b903d877bdfc07f36ab1b76f374
Contents?: true
Size: 365 Bytes
Versions: 6
Compression:
Stored size: 365 Bytes
Contents
require 'test_helper' class UniqueJobTest < ActiveSupport::TestCase test "the lock key contains the job type" do task = tasks(:shipit_restart) job_a = ChunkRollupJob.new(task) job_b = GithubSyncJob.new(task) called = false job_a.acquire_lock do job_b.acquire_lock do called = true end end assert called end end
Version data entries
6 entries across 6 versions & 1 rubygems