Sha256: ae55104ae390ec986301a29e21461f78e8733194f4a236a0a2c120595917b91b
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 Bytes
Contents
require 'test_helper' class Robut::Plugin::BaseTest < Test::Unit::TestCase def test_sent_to_me? plugin = Robut::Plugin::Base.new(Robut::ConnectionMock.new) assert plugin.sent_to_me?("@Robut hello there") assert !plugin.sent_to_me?("@Robuto hello there") assert !plugin.sent_to_me?("@David hello there") assert plugin.sent_to_me?("this is a @Robut message") assert plugin.sent_to_me?("this is a message to @robut") assert !plugin.sent_to_me?("this is a message to@robut") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
robut-0.2.1 | test/unit/plugin/base_test.rb |
robut-0.2.0 | test/unit/plugin/base_test.rb |