Sha256: b8c33755802ca5a79428280a3cb698fbd3bac8100269730a9a0786ec483dd210

Contents?: true

Size: 400 Bytes

Versions: 3

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

module Telegram
  module Bot
    module RSpec
      autoload :ClientMatchers, 'telegram/bot/rspec/client_matchers'

      module_function

      # Yelds a block if `include_context` is supported.
      def with_include_context
        ::RSpec.configure do |config|
          yield(config) if config.respond_to?(:include_context)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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