Module: Telegram::Bot::RSpec

Defined in:
lib/telegram/bot/rspec.rb,
lib/telegram/bot/rspec/client_matchers.rb

Defined Under Namespace

Modules: ClientMatchers Classes: ArgListMatcher

Class Method Summary collapse

Class Method Details

.with_include_contextObject

Yelds a block if ‘include_context` is supported.



11
12
13
14
15
# File 'lib/telegram/bot/rspec.rb', line 11

def with_include_context
  ::RSpec.configure do |config|
    yield(config) if config.respond_to?(:include_context)
  end
end