Sha256: eba5f0bbca7914517172801945845b1a9ea82532abaa541795488b4614d01184
Contents?: true
Size: 461 Bytes
Versions: 9
Compression:
Stored size: 461 Bytes
Contents
# encoding: UTF-8 require 'test/unit' require 'mocha/setup' require 'feedparser/sgml-parser' class SGMLParserTest < Test::Unit::TestCase def test_numerical_charref parser = FeedParser::SGMLParser.new parser.expects(:unknown_charref).with('215') parser.handle_charref('215') end def test_non_numerical_charref parser = FeedParser::SGMLParser.new parser.expects(:handle_data).with('amp') parser.handle_charref('amp') end end
Version data entries
9 entries across 9 versions & 1 rubygems