16 lines
304 B
Ruby
16 lines
304 B
Ruby
|
require_relative "../lib/discord_handler"
|
||
|
require "minitest/autorun"
|
||
|
|
||
|
class TestDiscordHandler < Minitest::Test
|
||
|
def setup
|
||
|
@bot = Minitest::Mock.new
|
||
|
@ika = DiscordHandler.new bot: @bot
|
||
|
end
|
||
|
|
||
|
def test_start!
|
||
|
@bot.expect(:message, nil)
|
||
|
@bot.expect(:run, nil)
|
||
|
@ika.start!
|
||
|
end
|
||
|
end
|