diff --git a/lib/bunny_mock/session.rb b/lib/bunny_mock/session.rb index 1ddfe20..7ea7097 100644 --- a/lib/bunny_mock/session.rb +++ b/lib/bunny_mock/session.rb @@ -88,7 +88,7 @@ def closing? # # @return [BunnyMock::Channel] Channel instance # @api public - def create_channel(n = nil, _pool_size = 1) + def create_channel(n = nil, _pool_size = 1, *_args) # raise same error as {Bunny::Session#create_channel} raise ArgumentError, 'channel number 0 is reserved in the protocol and cannot be used' if n && n.zero?