1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-04 02:05:52 +03:00
Этот коммит содержится в:
Roman Usherenko
2016-06-01 15:18:29 +03:00
родитель f61cc1e536
Коммит ba1b3c0974
2 изменённых файлов: 3 добавлений и 3 удалений

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

@@ -14,7 +14,7 @@ RSpec.describe Telegram::Bot::UpdatesController do
expect(controller).to receive(:chat) { chat }
expect(bot).to receive("send_#{type}").with(params.merge(
chat_id: chat['id'],
reply_to_message: payload[:message_id],
reply_to_message_id: payload[:message_id],
)) { result }
should eq result
end
@@ -29,7 +29,7 @@ RSpec.describe Telegram::Bot::UpdatesController do
it 'sets chat_id & reply_to_message' do
expect(bot).to receive("send_#{type}").with(params.merge(
chat_id: chat['id'],
reply_to_message: nil,
reply_to_message_id: nil,
)) { result }
should eq result
end