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

Version Path
cerberus-0.7.6 test/irc_publisher_test.rb
cerberus-0.7.2 test/irc_publisher_test.rb
cerberus-0.7.5 test/irc_publisher_test.rb
cerberus-0.7 test/irc_publisher_test.rb
cerberus-0.4.0 test/irc_publisher_test.rb
cerberus-0.4.2 test/irc_publisher_test.rb
cerberus-0.4.3 test/irc_publisher_test.rb
cerberus-0.4.4 test/irc_publisher_test.rb
cerberus-0.4.1 test/irc_publisher_test.rb
cerberus-0.4.5.1 test/irc_publisher_test.rb
cerberus-0.4.5 test/irc_publisher_test.rb
cerberus-0.5 test/irc_publisher_test.rb
cerberus-0.6 test/irc_publisher_test.rb