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

Version Path
worker_killer-1.1.0.223443 spec/delayed_job_plugin/oom_limiter_spec.rb
worker_killer-1.1.0.214159 spec/delayed_job_plugin/oom_limiter_spec.rb
worker_killer-1.1.0.214146 spec/delayed_job_plugin/oom_limiter_spec.rb
worker_killer-1.0.5.213977 spec/delayed_job_plugin/oom_limiter_spec.rb
worker_killer-1.0.5.213889 spec/delayed_job_plugin/oom_limiter_spec.rb
worker_killer-1.0.4.189871 spec/delayed_job_plugin/oom_limiter_spec.rb
worker_killer-1.0.3.189564 spec/delayed_job_plugin/oom_limiter_spec.rb
worker_killer-1.0.3.189098 spec/delayed_job_plugin/oom_limiter_spec.rb