employer-mongoid 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -30,6 +30,13 @@ describe Employer::Mongoid::Pipeline do
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
+
describe "clear" do
|
34
|
+
it "deletes all jobs" do
|
35
|
+
Employer::Mongoid::Job.should_receive(:destroy_all)
|
36
|
+
pipeline.clear
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
33
40
|
describe "#complete" do
|
34
41
|
it "deletes the job from the collection" do
|
35
42
|
job_document = double("Job document")
|