aboutsummaryrefslogtreecommitdiffstats
path: root/test/rss/test_maker_1.0.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rss/test_maker_1.0.rb')
-rw-r--r--test/rss/test_maker_1.0.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/rss/test_maker_1.0.rb b/test/rss/test_maker_1.0.rb
index 47bfe99ba2..b465556979 100644
--- a/test/rss/test_maker_1.0.rb
+++ b/test/rss/test_maker_1.0.rb
@@ -4,6 +4,13 @@ require "rss/maker"
module RSS
class TestMaker10 < TestCase
+ def test_supported?
+ assert(RSS::Maker.supported?("1.0"))
+ assert(RSS::Maker.supported?("rss1.0"))
+ assert(!RSS::Maker.supported?("1.1"))
+ assert(!RSS::Maker.supported?("rss1.1"))
+ end
+
def test_find_class
assert_equal(RSS::Maker::RSS10, RSS::Maker["1.0"])
assert_equal(RSS::Maker::RSS10, RSS::Maker["rss1.0"])