зеркало из
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 строки
461 B
Ruby
17 строки
461 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'telegram/bot/rspec/integration/shared'
|
|
|
|
RSpec.shared_context 'telegram/bot/integration/poller' do
|
|
include_context 'telegram/bot/integration/shared'
|
|
let(:controller_class) { described_class }
|
|
|
|
def dispatch(update)
|
|
controller_class.dispatch(bot, update.as_json)
|
|
end
|
|
end
|
|
|
|
Telegram::Bot::RSpec.with_include_context do |config|
|
|
config.include_context 'telegram/bot/integration/poller', telegram_bot: :poller
|
|
end
|