diff options
Diffstat (limited to 'test/rss/test_maker_2.0.rb')
-rw-r--r-- | test/rss/test_maker_2.0.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/rss/test_maker_2.0.rb b/test/rss/test_maker_2.0.rb index 7285f11a72..6321ea5dce 100644 --- a/test/rss/test_maker_2.0.rb +++ b/test/rss/test_maker_2.0.rb @@ -4,6 +4,13 @@ require "rss/maker" module RSS class TestMaker20 < TestCase + def test_supported? + assert(RSS::Maker.supported?("2.0")) + assert(RSS::Maker.supported?("rss2.0")) + assert(!RSS::Maker.supported?("2.2")) + assert(!RSS::Maker.supported?("rss2.2")) + end + def test_find_class assert_equal(RSS::Maker::RSS20, RSS::Maker["2.0"]) assert_equal(RSS::Maker::RSS20, RSS::Maker["rss2.0"]) |