Sha256: d24738511e6d3f7f9c772b2ebfb24ec8194808b1e3c9493bacb1c6ead81340f0
Contents?: true
Size: 750 Bytes
Versions: 11
Compression:
Stored size: 750 Bytes
Contents
require 'test_helper' require 'robut/plugin/echo' class Robut::Plugin::EchoTest < Test::Unit::TestCase def setup @connection = Robut::ConnectionMock.new @presence = Robut::PresenceMock.new(@connection) @plugin = Robut::Plugin::Echo.new(@presence) end def test_replies_with_this @plugin.handle(Time.now, "@john", "@robut echo this") assert_equal ["this"], @plugin.reply_to.replies end def test_replies_with_nicks @plugin.handle(Time.now, "@john", "@robut echo @justin look over here!") assert_equal ["@justin look over here!"], @plugin.reply_to.replies end def test_doesnt_reply_with_empty @plugin.handle(Time.now, "@john", "@robut echo") assert_equal [], @plugin.reply_to.replies end end
Version data entries
11 entries across 11 versions & 2 rubygems