module Lita::RSpec::Matchers::ChatRouteMatcher

RSpec matchers for chat routes. @since 4.0.0

Public Instance Methods

route_command(message_body) click to toggle source

Sets an expectation that the provided message routes to a command. @param message_body [String] The body of the message. @return [void]

# File lib/lita/rspec/matchers/chat_route_matcher.rb, line 42
def route_command(message_body)
  route("#{robot.mention_name} #{message_body}")
end