Skip to content
RSpec matchers for queue_classic
Branch: master
Clone or download
Latest commit e5f9c4b Jul 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
lib Try to make releases work harder Jul 16, 2019
spec CI/CD configuration Jul 15, 2019
.gitignore
.rspec Added some unit tests Feb 12, 2015
Gemfile Be less prescriptive over the QC+ version Apr 20, 2018
LICENSE.txt Initial extract of our QC matchers Jul 10, 2014
README.md CI/CD configuration Jul 15, 2019
Rakefile
queue_classic_matchers.gemspec Try to get releases working Jul 16, 2019

README.md

QueueClassicMatchers

Test helpers and RSpec matchers to QueueClassicPlus.

Compatibility

This version of the matchers are compatible with queue_classic 3.1+ 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

  1. Fork it ( https://github.com/[my-github-username]/queue_classic_matchers/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Releasing

  1. Open a PR and get it merged to master, making sure you've updated VERSION in lib/queue_classic_matchers/version.rb
  2. git checkout master; git pull
  3. rake release:source_control_push
You can’t perform that action at this time.