require 'test/unit' require 'feed_tools' class AtomTest < Test::Unit::TestCase def setup FeedTools.tidy_enabled = false end def test_feed_title feed = FeedTools::Feed.open( 'http://feedparser.org/tests/wellformed/atom/atom_namespace_1.xml') assert_equal("Example Atom", feed.title) assert_equal(false, feed.bozo?) feed = FeedTools::Feed.open( 'http://feedparser.org/tests/wellformed/atom/atom_namespace_2.xml') assert_equal("Example Atom", feed.title) assert_equal(false, feed.bozo?) feed = FeedTools::Feed.open( 'http://feedparser.org/tests/wellformed/atom/atom_namespace_3.xml') assert_equal("Example Atom", feed.title) assert_equal(false, feed.bozo?) feed = FeedTools::Feed.open( 'http://feedparser.org/tests/wellformed/atom/atom_namespace_4.xml') assert_equal("Example Atom", feed.title) assert_equal(false, feed.bozo?) feed = FeedTools::Feed.open( 'http://feedparser.org/tests/wellformed/atom/atom_namespace_5.xml') assert_equal("Example Atom", feed.title) assert_equal(false, feed.bozo?) end def test_feed_author # feed = FeedTools::Feed.open( # 'http://feedparser.org/tests/wellformed/atom/atom_namespace_5.xml') # assert_equal("Example Atom", feed.title) # assert_equal(false, feed.bozo?) end end