Skip to content

Commit

Permalink
Allow Session#create_channel to accept additional args
Browse files Browse the repository at this point in the history
In ruby-amqp/bunny#382 and
ruby-amqp/bunny#437 `Session#create_channel` got
some additional arguments. This change allows calling of
`create_channel` with additional arguments.
  • Loading branch information
eebs committed Dec 19, 2016
1 parent 09b5cb7 commit a25dd38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bunny_mock/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down

0 comments on commit a25dd38

Please sign in to comment.