summaryrefslogtreecommitdiff
path: root/test/rss/test_maker_atom_feed.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-11 12:06:26 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-11 12:06:26 +0000
commit876e1b87e7c0f2175932d7814c4ffbd272e01471 (patch)
treecb1d87a72fd558e9b97ac2f9811ce47bc5809a62 /test/rss/test_maker_atom_feed.rb
parent7ff55ae6bbed1e508837325e35a2fadd4471aa36 (diff)
* lib/rss/maker.rb, lib/rss/maker/0.9.rb, lib/rss/maker/base.rb:
RSS::Maker.[] returns a maker class corresponds to passed version. * test/rss/test_maker_*.rb: add tests for RSS::Maker.[]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss/test_maker_atom_feed.rb')
-rw-r--r--test/rss/test_maker_atom_feed.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/rss/test_maker_atom_feed.rb b/test/rss/test_maker_atom_feed.rb
index e5bf0e2..378cf9a 100644
--- a/test/rss/test_maker_atom_feed.rb
+++ b/test/rss/test_maker_atom_feed.rb
@@ -4,6 +4,13 @@ require "rss/maker"
module RSS
class TestMakerAtomFeed < TestCase
+ def test_find_class
+ assert_equal(RSS::Maker::Atom::Feed, RSS::Maker["atom"])
+ assert_equal(RSS::Maker::Atom::Feed, RSS::Maker["atom:feed"])
+ assert_equal(RSS::Maker::Atom::Feed, RSS::Maker["atom1.0"])
+ assert_equal(RSS::Maker::Atom::Feed, RSS::Maker["atom1.0:feed"])
+ end
+
def test_root_element
feed = Maker.make("atom") do |maker|
setup_dummy_channel_atom(maker)