arempe93 / bunny-mock

A mock client for RabbitMQ modeled after the Bunny client in ruby
http://www.rubydoc.info/github/arempe93/bunny-mock
MIT License
44 stars 37 forks source link

Fails to load when using bunny 2.6.3 with "Gem Load Error is: uninitialized constant Bunny::Timeout" #29

Closed pangdudu closed 7 years ago

pangdudu commented 7 years ago

Hi,

when using with bunny 2.6.3, I get this error:

Gem Load Error is: uninitialized constant Bunny::Timeout
Did you mean?  Time
Backtrace for gem load error is:

I created a PR to fix this:

pull request

In the meanwhile, you can fix the error by just doing this:

require 'timeout' # before you require bunny-mock
require 'bunny-mock'
arempe93 commented 7 years ago

Fixed in #28