Sha256: 4a4703e3286dea0067518023b5c2fe13847b43d3e5980592221a14594c9442d3
Contents?: true
Size: 460 Bytes
Versions: 1
Compression:
Stored size: 460 Bytes
Contents
shared_examples_for "a worker" do context "class" do subject { described_class } it { should respond_to(:perform) } it { should respond_to(:perform_async) } it "delegates ::perform to #perform" do expect_any_instance_of(TestWorker).to receive(:perform).once.with("foo") TestWorker.perform("foo") end end context "instance" do it { should respond_to(:perform) } it { should respond_to(:perform_async) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
multi_worker-0.2.0 | spec/shared/worker_spec.rb |