Sha256: 001ed27606b71a81b6f4a2c8ec38c8311ae8943e9e90c45220c953eeb9eb7cae
Contents?: true
Size: 483 Bytes
Versions: 8
Compression:
Stored size: 483 Bytes
Contents
RSpec.describe WorkerKiller::DelayedJobPlugin::OOMLimiter do let(:killer) { double } subject(:plugin){ described_class.new(min: (1024**3), max: (2 * (1024**3)), 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
8 entries across 8 versions & 1 rubygems