Sha256: 967e489355336fa80d25601af0fb21fdb8a258fe5cfdeea4c636d365c25befbb
Contents?: true
Size: 694 Bytes
Versions: 9
Compression:
Stored size: 694 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' require 'cerberus/publisher/twitter' require 'cerberus/manager' require 'mock/manager' require 'mock/twitter' class TwitterPublisherTest < Test::Unit::TestCase def test_publisher options = Cerberus::Config.new(nil, :publisher => {:twitter => {:login => 'twittest', :password => 'twitpass'}}, :application_name => 'TestApp') build = DummyManager.new('last message', 'this is output', 1232, 'anatol') Cerberus::Publisher::Twitter.publish(build_status(false), build, options) statuses = Twitter::Client.statuses assert_equal 1, statuses.size assert_equal '[TestApp] Build still broken (1232)', statuses.first end end
Version data entries
9 entries across 9 versions & 2 rubygems