README.md in resque_spec-0.9.0 vs README.md in resque_spec-0.9.1
- old
+ new
@@ -148,36 +148,36 @@
end
end
And I might use the `in` statement to specify time interval (in seconds):
- describe "#recalculate" do
- before do
- ResqueSpec.reset!
- end
+ describe "#recalculate" do
+ before do
+ ResqueSpec.reset!
+ end
- it "adds person.calculate to the Person queue" do
- person.recalculate
+ it "adds person.calculate to the Person queue" do
+ person.recalculate
- # Is it scheduled to be executed in 5 minutes?
- Person.should have_scheduled(person.id, :calculate).in(5 * 60)
+ # Is it scheduled to be executed in 5 minutes?
+ Person.should have_scheduled(person.id, :calculate).in(5 * 60)
+ end
end
- end
You can also check the size of the schedule:
- describe "#recalculate" do
- before do
- ResqueSpec.reset!
- end
+ describe "#recalculate" do
+ before do
+ ResqueSpec.reset!
+ end
- it "adds person.calculate to the Person queue" do
- person.recalculate
+ it "adds person.calculate to the Person queue" do
+ person.recalculate
- Person.should have_schedule_size_of(1)
+ Person.should have_schedule_size_of(1)
+ end
end
- end
(And I take note of the `before` block that is calling `reset!` for every spec)
And I might write this as a Cucumber step
@@ -286,25 +286,32 @@
future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.
+Author
+======
+
+I made `resque_spec` because **resque** is awesome and should be easy to spec.
+Follow me on [Github](https://github.com/leshill) and
+[Twitter](https://twitter.com/leshill).
+
Contributors
============
-* Les Hill (@leshill) : author
-* Kenneth Kalmer (@kennethkalmer) : rspec dependency fix
-* Brian Cardarella (@bcardarella) : fix mutation bug
-* Joshua Davey (@joshdavey) : with_resque helper
-* Lar Van Der Jagt (@supaspoida) : with_resque helper
-* Evan Sagge (@evansagge) : Hook in via Job.create, have_queued.in
-* Jon Larkowski (@l4rk) : inline perform
-* James Conroy-Finn (@jcf) : spec fix
-* Dennis Walters (@ess) : enqueue_in support
-* (@RipTheJacker) : remove_delayed support
-* Kurt Werle (@kwerle) : explicit require spec for v020
-* (@dwilkie) : initial before_enqueue support
-* Marcin Balinski (@marcinb) : have_schedule_size_of matcher
+* Kenneth Kalmer (@kennethkalmer) : rspec dependency fix
+* Brian Cardarella (@bcardarella) : fix mutation bug
+* Joshua Davey (@joshdavey) : with_resque helper
+* Lar Van Der Jagt (@supaspoida) : with_resque helper
+* Evan Sagge (@evansagge) : Hook in via Job.create, have_queued.in
+* Jon Larkowski (@l4rk) : inline perform
+* James Conroy-Finn(@jcf) : spec fix
+* Dennis Walters (@ess) : enqueue_in support
+* (@RipTheJacker) : remove_delayed support
+* Kurt Werle (@kwerle) : explicit require spec for v020
+* (@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
Copyright
=========
Copyright (c) 2010-2011 Les Hill. See LICENSE for details.