spec/task_spec.rb in wayfarer-0.4.3 vs spec/task_spec.rb in wayfarer-0.4.4

- old
+ new

@@ -22,6 +22,13 @@ it "returns its batch counter" do expect(task.counter).to be_a(Wayfarer::Redis::Counter) expect(task.counter.batch).to eq(task.batch) end end + + describe "#gc" do + it "returns a garbage collector" do + expect(task.gc).to be_a(Wayfarer::GC) + expect(task.gc.task).to be(task) + end + end end