README.md in resque_spec-0.9.3 vs README.md in resque_spec-0.10.0

- old
+ new

@@ -97,10 +97,35 @@ person.recalculate Person.should have_queue_size_of(1) end end +Turning off ResqueSpec and calling directly to Resque +----------------------------------------------------- + +Occasionally, you want to run your specs directly against Resque instead of +ResqueSpec. For one at a time use, pass a block to the `without_resque_spec` +helper: + + describe "#recalculate" do + it "recalculates the persons score" do + without_resque_spec do + person.recalculate + end + ... assert recalculation after job done + end + end + +Or you can manage when ResqueSpec is disabled by flipping the +`ResqueSpec.disable_ext` flag: + + # disable ResqueSpec + ResqueSpec.disable_ext = true + +You will most likely (but not always, see the Resque docs) need to ensure that +you have `redis` running. + ResqueMailer with Specs ======================= To use with [ResqueMailer](https://github.com/zapnap/resque_mailer) you should have an initializer that does *not* exclude the `test` (or `cucumber`) @@ -315,9 +340,10 @@ * (@dwilkie) : initial before_enqueue support * Marcin Balinski (@marcinb) : have_schedule_size_of matcher, schedule matcher at, in * (@alexeits) : fix matcher in bug with RSpec 2.8.0 * (@ToadJamb) : encode/decode of Resque job arguments * Mateusz Konikowski (@mkonikowski) : support for anything matcher +* Mathieu Ravaux (@mathieuravaux) : without_resque_spec support Copyright ========= Copyright (c) 2010-2011 Les Hill. See LICENSE for details.