Module: Lita::RSpec::Matchers::ChatRouteMatcher
- Extended by:
- RSpec::Matchers::DSL
- Included in:
- Handler
- Defined in:
- lib/lita/rspec/matchers/chat_route_matcher.rb
Overview
RSpec matchers for chat routes.
Instance Method Summary collapse
-
#route_command(message_body) ⇒ void
Sets an expectation that the provided message routes to a command.
Instance Method Details
#route_command(message_body) ⇒ void
This method returns an undefined value.
Sets an expectation that the provided message routes to a command.
42 43 44 |
# File 'lib/lita/rspec/matchers/chat_route_matcher.rb', line 42 def route_command() route("#{robot.mention_name} #{message_body}") end |