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

Version Path
canvas_sync-0.22.9 spec/job_uniqueness/support/test_worker.rb
canvas_sync-0.22.8 spec/job_uniqueness/support/test_worker.rb
canvas_sync-0.22.6 spec/job_uniqueness/support/test_worker.rb
canvas_sync-0.22.5 spec/job_uniqueness/support/test_worker.rb
canvas_sync-0.22.4 spec/job_uniqueness/support/test_worker.rb
canvas_sync-0.22.3 spec/job_uniqueness/support/test_worker.rb
canvas_sync-0.22.2 spec/job_uniqueness/support/test_worker.rb
canvas_sync-0.22.1 spec/job_uniqueness/support/test_worker.rb
canvas_sync-0.22.0 spec/job_uniqueness/support/test_worker.rb
canvas_sync-0.22.0.beta8 spec/job_uniqueness/support/test_worker.rb
canvas_sync-0.22.0.beta7 spec/job_uniqueness/support/test_worker.rb
canvas_sync-0.22.0.beta6 spec/job_uniqueness/support/test_worker.rb
canvas_sync-0.22.0.beta5 spec/job_uniqueness/support/test_worker.rb
canvas_sync-0.22.0.beta4 spec/job_uniqueness/support/test_worker.rb
canvas_sync-0.22.0.beta3 spec/job_uniqueness/support/test_worker.rb
canvas_sync-0.22.0.beta2 spec/job_uniqueness/support/test_worker.rb
canvas_sync-0.22.0.beta1 spec/job_uniqueness/support/test_worker.rb