Save job on every perform

This commit is contained in:
Dzmitry Plashchynski
2015-03-06 23:57:55 +02:00
parent c8a4189fd4
commit fe24b435b3
4 changed files with 12 additions and 5 deletions

View File

@@ -18,6 +18,12 @@ describe Crono::Job do
thread = job.perform.join
expect(thread).to be_stop
end
it "should call Job#save after run" do
expect(job).to receive(:save)
job.perform.join
job.send(:model).destroy
end
end
describe "#description" do