0.0
No commit activity in last 3 years
No release in over 3 years
Beaneater mock for testing
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 2.9.0

Runtime

>= 0.6.1
 Project Readme

MockBeaneater

Build Status Coverage Status

Mock beaneater that goes AH-HEE-OH-HEE-AH-HEE*. Intended for use in tests.

*sound a beaneater makes

Usage

Use a mock beaneater like you would a beaneater!

>> require 'mock_beaneater'
>> mbp = MockBeaneater::Pool.new

>> mtube = mbp.tubes.find('my-tube')
>> mtube.put('my-msg')
=> {:status=>"INSERTED", :body=>nil, :id=>1}

>> mjob = mtube.reserve
=> #<MockBeaneater::Job id=1 body="msg">
>> mjob.delete

TODO

  • stats
  • ttr
  • ...