Sha256: 80b4da7f8d9cbf8fd2db92ca74654dfbba79bf9392814489a8f73c1b4757e284

Contents?: true

Size: 461 Bytes

Versions: 3

Compression:

Stored size: 461 Bytes

Contents

# 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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
telegram-bot-0.16.5 lib/telegram/bot/rspec/integration/poller.rb
telegram-bot-0.16.4 lib/telegram/bot/rspec/integration/poller.rb
telegram-bot-0.16.3 lib/telegram/bot/rspec/integration/poller.rb