lib/bunny_mock/exchanges/topic.rb in bunny-mock-1.4.0 vs lib/bunny_mock/exchanges/topic.rb in bunny-mock-1.5.0

- old
+ new

@@ -23,10 +23,10 @@ # # @api public # def deliver(payload, opts, key) delivery_routes = @routes.dup.keep_if { |route, _| key =~ route_to_regex(route) } - delivery_routes.values.each { |dest| dest.publish(payload, opts) } + delivery_routes.values.flatten.each { |dest| dest.publish(payload, opts) } end private # @private