Sha256: 631ce7b5994aa0fab1e3f00ed208d050179c2425d71ef7edd3876d0d5bcec7ed

Contents?: true

Size: 430 Bytes

Versions: 14

Compression:

Stored size: 430 Bytes

Contents

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

14 entries across 14 versions & 1 rubygems

Version Path
telegram-bot-0.16.1 lib/telegram/bot/rspec/integration/poller.rb
telegram-bot-0.16.0 lib/telegram/bot/rspec/integration/poller.rb
telegram-bot-0.15.7 lib/telegram/bot/rspec/integration/poller.rb
telegram-bot-0.15.6 lib/telegram/bot/rspec/integration/poller.rb
telegram-bot-0.15.4 lib/telegram/bot/rspec/integration/poller.rb
telegram-bot-0.15.3 lib/telegram/bot/rspec/integration/poller.rb
telegram-bot-0.15.2 lib/telegram/bot/rspec/integration/poller.rb
telegram-bot-0.15.1 lib/telegram/bot/rspec/integration/poller.rb
telegram-bot-0.15.0 lib/telegram/bot/rspec/integration/poller.rb
telegram-bot-0.14.4 lib/telegram/bot/rspec/integration/poller.rb
telegram-bot-0.14.3 lib/telegram/bot/rspec/integration/poller.rb
telegram-bot-0.14.2 lib/telegram/bot/rspec/integration/poller.rb
telegram-bot-0.14.1 lib/telegram/bot/rspec/integration/poller.rb
telegram-bot-0.14.0 lib/telegram/bot/rspec/integration/poller.rb