Sha256: 96e2c90bad351f00337f32356818f7c79c6ff0c2bacd2f3173b566818221a7ba
Contents?: true
Size: 668 Bytes
Versions: 13
Compression:
Stored size: 668 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' require 'cerberus/publisher/irc' require 'cerberus/config' require 'cerberus/manager' require 'mock/irc' require 'mock/manager' class IRCPublisherTest < Test::Unit::TestCase def test_publisher options = Cerberus::Config.new(nil, :publisher => {:irc => {:channel => 'hello'}}, :application_name => 'IrcApp') build = DummyManager.new('last message', 'this is output', 1232, 'anatol') Cerberus::Publisher::IRC.publish(build_status(true), build, options) assert IRCConnection.connected assert IRCConnection.messages.first.include?('JOIN') assert_equal 7, IRCConnection.messages.size end end
Version data entries
13 entries across 13 versions & 1 rubygems