Sha256: 4d29612bb87cf68a849e7e0457b71aee5bff8c4c608d073f3fb34dffb45d90d6
Contents?: true
Size: 525 Bytes
Versions: 4
Compression:
Stored size: 525 Bytes
Contents
require "minitest/autorun" require "cognition" class DefaultPluginTest < Minitest::Test def setup @bot = Cognition::Bot.new end def test_returns_help help = "ping - Test if the endpoint is responding. Returns PONG.\nhelp - Lists all commands with help\nhelp <command> - Lists help for <command>" assert_equal help, @bot.process("help") end def test_returns_filtered_help help = "ping - Test if the endpoint is responding. Returns PONG." assert_equal help, @bot.process("help ping") end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cognition-2.0.8 | test/test_default_plugin.rb |
cognition-2.0.7 | test/test_default_plugin.rb |
cognition-2.0.6 | test/test_default_plugin.rb |
cognition-2.0.5 | test/test_default_plugin.rb |