Awesome
QueueClassicMatchers
Test helpers and RSpec matchers to QueueClassicPlus.
Compatibility
This version of the matchers are compatible with queue_classic 4 which includes built-in scheduling. See other branches for other compatible versions.
Installation
Add this line to your application's Gemfile:
gem 'queue_classic_matchers'
And then execute:
$ bundle
Or install it yourself as:
$ gem install queue_classic_matchers
Usage
TODO: Write usage instructions here
Matchers
expect(MyQueueClassicPlusJob).to have_queued(*my_args)
Other matchers are have_queue_size_of
, change_queue_size_of
and have_scheduled
.
Test Helper
Run a subset of the jobs in a queue. Delete the others.
run_queue q_name, [MyQueueClassicPlusJob]
Contributing
- Fork it ( https://github.com/[my-github-username]/queue_classic_matchers/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Releasing
- Open a PR and get it merged to master, making sure you've updated VERSION in
lib/queue_classic_matchers/version.rb
git checkout master; git pull
rake release:source_control_push