Permalink
Browse files

Add failing spec for a bug I've run into.

  • Loading branch information...
1 parent 3f046c9 commit 27df629356414f5b2bb80d9ce291532e48abcd20 @myronmarston myronmarston committed Sep 21, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 spec/integration/qless_spec.rb
@@ -435,6 +435,15 @@ class FooJob
jobs[i].history[0]['put'].should eq(start + i * 10)
end
end
+
+ it "does not re-set the jid counter when re-recurring a job" do
+ q.recur(Qless::Job, {'test' => 'test_passed_interval'}, 10, :jid => 'my_recurring_job')
+ job1 = q.pop
+ q.recur(Qless::Job, {'test' => 'test_passed_interval'}, 10, :jid => 'my_recurring_job')
+ job2 = q.pop
+
+ job1.jid.should_not eq(job2.jid)
+ end
end
describe "#put" do

0 comments on commit 27df629

Please sign in to comment.