Sha256: 56133153cddd9accc7c1e3af010945e10572e8b72a523baaa7b99d9c4170b780
Contents?: true
Size: 609 Bytes
Versions: 2
Compression:
Stored size: 609 Bytes
Contents
require 'spec_helper' RSpec.describe SidekiqUniqueJobs::OptionsWithFallback do include described_class subject { self } let(:options) { {} } let(:item) { {} } describe '#unique_lock' do context 'when options have `unique: true`' do let(:options) { { 'unique' => true } } it 'warns when unique is set to true' do expect(subject) .to receive(:warn) .with( 'unique: true is no longer valid. Please set it to the type of lock required like: ' \ '`unique: :until_executed`') subject.unique_lock end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-unique-jobs-4.0.8 | spec/lib/sidekiq_unique_jobs/options_with_fallback_spec.rb |
sidekiq-unique-jobs-4.0.7 | spec/lib/sidekiq_unique_jobs/options_with_fallback_spec.rb |