Sha256: 62d1bc9ddac3c3133370fcb63684f2a0124370f3a63857a2fc63a591d4541961
Contents?: true
Size: 554 Bytes
Versions: 1
Compression:
Stored size: 554 Bytes
Contents
# frozen_string_literal: true RSpec.describe Twitch::Bot::CommandHandler do it "responds to a known command" do config = Twitch::Bot::Config.new client = Twitch::Bot::Client.new(config: config) message = Twitch::Bot::Message::UserMessage.new( text: "!mycommand test", user: "testuser", ) handler = described_class.new(event: message, client: client) handler.command_alias("mycommand") allow(handler).to receive(:handle_command) handler.call expect(handler).to have_received(:handle_command) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twitch-bot-4.1.0 | spec/twitch/bot/command_handler_spec.rb |