1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-08 03:45:52 +03:00

Ruby 3.0 support, drop support for Ruby < 2.4

Этот коммит содержится в:
Max Melentiev
2020-12-30 18:04:32 +03:00
родитель 036fbd20d5
Коммит 791c4233ca
15 изменённых файлов: 86 добавлений и 72 удалений

Просмотреть файл

@@ -41,7 +41,7 @@ RSpec.describe Telegram::Bot::RoutesHelper do
end
describe '#telegram_webhook' do
subject { ->(*args) { mapper.telegram_webhook(*args) } }
subject { ->(*args, **kwargs) { mapper.telegram_webhook(*args, **kwargs) } }
let(:mapper) { double(:mapper).tap { |x| x.extend described_class } }
let(:controller) { double(:controller, name: :controller) }
before { allow(Telegram).to receive(:bots) { bots } }