Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
seanxiesx committed Nov 10, 2013
1 parent 6896a5f commit 6f6c9a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MockBeaneater
[![Build Status](https://travis-ci.org/seanxiesx/mock_beaneater.png)](https://travis-ci.org/seanxiesx/mock_beaneater)
[![Coverage Status](https://coveralls.io/repos/seanxiesx/mock_beaneater/badge.png)](https://coveralls.io/r/seanxiesx/mock_beaneater)

Mock beaneater that goes AH-HEE-OH-HEE-AH-HEE\*. Intended for use in tests.
Mock [beaneater](https://github.com/beanstalkd/beaneater) that goes AH-HEE-OH-HEE-AH-HEE\*. Intended for use in tests.

\*sound a beaneater makes

Expand All @@ -15,9 +15,11 @@ 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
Expand Down

0 comments on commit 6f6c9a0

Please sign in to comment.