зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-08-28 15:26:18 +03:00
* Update rubopcop [WIP] * Further rubocop fixes * Fix rubocop-rails cops * Fix spec * Disable rubocop suggestions * Run rubocop in github actions rather than in codeclimate
17 строки
440 B
Ruby
17 строки
440 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'telegram/bot/rspec/integration/poller'
|
|
|
|
RSpec.describe 'Poller integration spec', telegram_bot: :poller do
|
|
include_examples 'shared integration examples'
|
|
|
|
describe '#dispatch' do
|
|
it 'doesn`t provide webhook_request' do
|
|
expect(controller_class).to receive(:dispatch).
|
|
with(bot, hash_including('message')).
|
|
and_call_original
|
|
dispatch_message :test
|
|
end
|
|
end
|
|
end
|