README.md in resque_spec-0.1.1 vs README.md in resque_spec-0.1.2
- old
+ new
@@ -2,19 +2,21 @@
==========
A simple RSpec and Cucumber matcher for Resque.enqueue, loosely based on
[http://github.com/justinweiss/resque_unit](resque_unit).
+This should work with Resque v1.6.0 and up and RSpec v1.3.0 and up.
+
Install
-------
Install the gem
% gem install resque_spec
And update your Gemfile (Not using bundler? Do the necessary thing for
-your app's gem management):
+your app's gem management)
group :test do
gem 'resque_spec'
end
@@ -25,25 +27,25 @@
Given a person
When I recalculate
Then the person has calculate queued
-And I write this spec using the resque_spec matcher
+And I write this spec using the `resque_spec` matcher
describe "#recalculate" do
before do
ResqueSpec.reset!
end
- it "adds to the calculate to the person queue" do
+ it "adds person.calculate to the Person queue" do
person.recalculate
Person.should have_queued(person.id, :calculate)
end
end
-(And I take note of the `before` block that is using `reset` every spec.)
+(And I take note of the `before` block that is calling `reset!` for every spec)
-And I might write this as a cucumber step
+And I might write this as a Cucumber step
Then /the (\w?) has (\w?) queued/ do |thing, method|
thing_obj = instance_variable_get("@#{thing}")
thing_obj.class.should have_queued(thing_obj.id, method.to_sym)
end