require File.dirname(__FILE__) + '/test_helper' require 'cerberus/publisher/rss' require 'mock/manager' require 'tempfile' require 'rexml/document' class RSSPublisherTest < Test::Unit::TestCase def test_publisher rss_file = Tempfile.new('cerberus-rss') options = Cerberus::Config.new(nil, :publisher => {:rss => {:file => rss_file.path}}, :application_name => 'RSSlast message\nthis is output\n--\nThis email generated by Cerberus tool ver\. 0.\d.\d, http://cerberus.rubyforge.org/}, xml.elements["rss/channel/item/description/"].get_text.value end end