test/test_cognition.rb in cognition-2.0.4 vs test/test_cognition.rb in cognition-2.0.5

- old
+ new

@@ -1,8 +1,8 @@ -require 'minitest/autorun' -require 'cognition' -require_relative 'fixtures/hello' +require "minitest/autorun" +require "cognition" +require_relative "fixtures/hello" class CognitionTest < Minitest::Test def setup @bot = Cognition::Bot.new end @@ -19,24 +19,24 @@ assert_equal 2, @bot.plugin_names.count end def test_processes_messages - msg = Cognition::Message.new('ping') - assert_equal 'PONG', @bot.process(msg) + msg = Cognition::Message.new("ping") + assert_equal "PONG", @bot.process(msg) end def test_processes_strings - assert_equal 'PONG', @bot.process('ping') + assert_equal "PONG", @bot.process("ping") end def test_processes_strings_with_metadata - assert_equal 'PONG', @bot.process('ping', foo: 'bar') + assert_equal "PONG", @bot.process("ping", foo: "bar") end def test_shows_help_if_no_matches @bot.register(Hello) - msg = Cognition::Message.new('pong') + msg = Cognition::Message.new("pong") output = @bot.process(msg) assert_match "No such command: pong\nUse 'help' for available commands!", output end end