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.



9
10
11
12
13
# File 'lib/telegram/bot/rspec.rb', line 9

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