Sha256: 41c4e1963f4c3254640e543980f0f026b9d10dd83b769e1cd25faa2299004b7d
Contents?: true
Size: 729 Bytes
Versions: 1
Compression:
Stored size: 729 Bytes
Contents
require 'threaded_in_memory_queue' ThreadedInMemoryQueue.inline = true require 'test_workers' describe TestWorker do it_behaves_like "a worker" end describe MultiWorker do context "when ThreadedInMemoryQueue is loaded" do it "defaults to the :threaded_in_memory_queue adapter" do MultiWorker.default_adapter.should == :threaded_in_memory_queue end end context "when using the :threaded_in_memory_queue adapter" do it "performs the work using ThreadedInMemoryQueue" do expect(TestWorker).to receive(:perform).exactly(3).times.with("foo") TestWorker.perform_async("foo") MultiWorker.enqueue(TestWorker, "foo") TestWorker.perform("foo") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
multi_worker-0.1.0 | spec/adapters/threaded_in_memory_queue_spec.rb |