Sha256: 6668eb5d8cb6267e34817aed7f09bfd4f882a7ff02ed9e10ed28135b5fd89227
Contents?: true
Size: 450 Bytes
Versions: 3
Compression:
Stored size: 450 Bytes
Contents
RSpec.describe WorkerKiller::DelayedJobPlugin::JobsLimiter do let(:killer) {double} subject(:plugin){ described_class.new(killer: killer) } context 'DelayedJob initialization' do let(:lifecycle) { double } subject(:instance) { plugin.new(lifecycle) } it do expect(lifecycle).to receive(:after).with(:perform).and_yield expect(lifecycle).to receive(:after).with(:loop).and_yield instance end end end
Version data entries
3 entries across 3 versions & 1 rubygems