Sha256: d4060d9dc3ab71386a84bea785c043a41f992e2eaf632233b403c9a36a840970
Contents?: true
Size: 449 Bytes
Versions: 3
Compression:
Stored size: 449 Bytes
Contents
RSpec.describe WorkerKiller::DelayedJobPlugin::OOMLimiter 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