diff options
Diffstat (limited to 'test/rss/test_parser.rb')
-rw-r--r-- | test/rss/test_parser.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/rss/test_parser.rb b/test/rss/test_parser.rb index 570141315b..cc0263b21a 100644 --- a/test/rss/test_parser.rb +++ b/test/rss/test_parser.rb @@ -417,4 +417,14 @@ EOR end + def test_default_parser + assert_nothing_raised() do + Parser.default_parser = RSS::AVAILABLE_PARSERS.first + end + + assert_raise(RSS::NotValidXMLParser) do + Parser.default_parser = RSS::Parser + end + end + end |