Sha256: 1e34de1ba326d3b35f656522f3e1c014d937af1d2171c9ad5e32ab3bb7aa8db1

Contents?: true

Size: 549 Bytes

Versions: 14

Compression:

Stored size: 549 Bytes

Contents

require 'active_support/json'
require 'telegram/bot'
require 'telegram/bot/rspec/message_helpers'
require 'telegram/bot/rspec/callback_query_helpers'

RSpec.shared_context 'telegram/bot/integration/shared' do
  include Telegram::Bot::RSpec::ClientMatchers
  include_context 'telegram/bot/message_helpers'
  include_context 'telegram/bot/callback_query', :callback_query

  let(:bot) { Telegram.bot }
  let(:clear_session?) { described_class.respond_to?(:session_store) }
  before { described_class.session_store.try!(:clear) if clear_session? }
end

Version data entries

14 entries across 14 versions & 1 rubygems

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