diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-11 12:06:26 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-11 12:06:26 +0000 |
commit | 876e1b87e7c0f2175932d7814c4ffbd272e01471 (patch) | |
tree | cb1d87a72fd558e9b97ac2f9811ce47bc5809a62 /test/rss/test_maker_2.0.rb | |
parent | 7ff55ae6bbed1e508837325e35a2fadd4471aa36 (diff) | |
download | ruby-876e1b87e7c0f2175932d7814c4ffbd272e01471.tar.gz |
* 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_2.0.rb')
-rw-r--r-- | test/rss/test_maker_2.0.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/rss/test_maker_2.0.rb b/test/rss/test_maker_2.0.rb index f6d4a11dc3..9fe6543dd9 100644 --- a/test/rss/test_maker_2.0.rb +++ b/test/rss/test_maker_2.0.rb @@ -4,6 +4,10 @@ require "rss/maker" module RSS class TestMaker20 < TestCase + def test_find_class + assert_equal(RSS::Maker::RSS20, RSS::Maker["2.0"]) + assert_equal(RSS::Maker::RSS20, RSS::Maker["rss2.0"]) + end def test_rss assert_raise(LocalJumpError) do |