зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-03 09:46:17 +03:00
Fix frozen string issue for ruby < 3 (#235)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ad1eb5a47f
Коммит
ffd17ec933
@@ -33,6 +33,9 @@ RSpec.describe Telegram::Bot::RSpec::ClientMatchers do
|
||||
args = {text: 'test', parseMode: :Markdown}
|
||||
block = ->(*) { bot.send_message(args) }
|
||||
expect(&block).to make_telegram_request(bot, :sendMessage).with(args)
|
||||
expect do
|
||||
expect(&block).to make_telegram_request(bot, :sendMessage).with(args.merge(extra: 1))
|
||||
end.to raise_error RSpec::Expectations::ExpectationNotMetError
|
||||
expect(&block).to_not make_telegram_request(bot, :sendMessage).with(args.except(:text))
|
||||
expect { 3.times(&block) }.to make_telegram_request(bot, :sendMessage).
|
||||
with(args).exactly(3).times
|
||||
|
||||
Ссылка в новой задаче
Block a user