spec/consumer_spec.rb in quebert-2.0.2 vs spec/consumer_spec.rb in quebert-2.0.3

- old
+ new

@@ -87,13 +87,13 @@ beanstalk_job.stats["delay"].should eql(Quebert::Controller::Beanstalk::TIMEOUT_RETRY_GROWTH_RATE**beanstalk_job.stats["releases"]) sleep(3) # lets set the max retry delay so it should bury instead of delay - Quebert::Controller::Beanstalk::MAX_TIMEOUT_RETRY_DELAY = 1 + redefine_constant Quebert::Controller::Beanstalk, :MAX_TIMEOUT_RETRY_DELAY, 1 lambda{@q.reserve.perform}.should raise_exception(Quebert::Job::Timeout) @q.peek(:ready).should be_nil @q.peek(:delayed).should be_nil @q.peek(:buried).should_not be_nil end -end \ No newline at end of file +end