Sha256: ed635d92a78dc1d46d7226091af3068f1d081ea0410107f9580a27dbd489c910
Contents?: true
Size: 437 Bytes
Versions: 17
Compression:
Stored size: 437 Bytes
Contents
require 'job_uniqueness/spec_helper' RSpec.shared_context "with TestWorker" do let!(:worker) do Class.new do include Sidekiq::Worker ensure_uniqueness( strategy: :until_executed, ) def perform; end end end before(:each) { stub_const('TestWorker', worker) } let(:lock_context) { CanvasSync::JobUniqueness::LockContext.new({ jid: 'j1', queue: 'default', job_clazz: 'TestWorker'}) } end
Version data entries
17 entries across 17 versions & 1 rubygems