lib/bunny_mock/exchange.rb in bunny-mock-1.2.1 vs lib/bunny_mock/exchange.rb in bunny-mock-1.2.2

- old
+ new

@@ -169,10 +169,11 @@ # @param [BunnyMock::Exchange,String] exchange Exchange to unbind from # @param [Hash] opts Binding properties # # @option opts [String] :routing_key Custom routing key # + # @return [BunnyMock::Exchange] self # @api public # def unbind(exchange, opts = {}) if exchange.respond_to?(:remove_route) @@ -183,10 +184,12 @@ else # we need the channel to look up the exchange @channel.xchg_unbind opts.fetch(:routing_key, @name), exchange end + + self end # @endgroup ## @@ -238,13 +241,13 @@ end ## # Deliver a message to routes # - # @see {BunnyMock::Exchanges::Direct#deliver} - # @see {BunnyMock::Exchanges::Topic#deliver} - # @see {BunnyMock::Exchanges::Fanout#deliver} - # @see {BunnyMock::Exchanges::Headers#deliver} + # @see BunnyMock::Exchanges::Direct#deliver + # @see BunnyMock::Exchanges::Topic#deliver + # @see BunnyMock::Exchanges::Fanout#deliver + # @see BunnyMock::Exchanges::Headers#deliver # @api public # def deliver(payload, opts, key) # noOp end