lib/telegram/bot/client_stub.rb in telegram-bot-0.15.1 vs lib/telegram/bot/client_stub.rb in telegram-bot-0.15.2
- old
+ new
@@ -3,14 +3,14 @@
# Stubbed client for tests. Saves all requests into #requests hash.
class ClientStub < Client
attr_reader :requests
module StubbedConstructor
- def new(*args)
+ def new(*args, **kwargs)
if self == ClientStub || !ClientStub.stub_all?
super
else
- ClientStub.new(*args)
+ ClientStub.new(*args, **kwargs)
end
end
end
class << self