Skip to content

seanxiesx/mock_beaneater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • ...

About

Beaneater mock for testing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages