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

Version Path
ruby-feedparser-0.11.2 test/tc_sgml_parser.rb
ruby-feedparser-0.11.1 test/tc_sgml_parser.rb
ruby-feedparser-0.11.0 test/tc_sgml_parser.rb
ruby-feedparser-0.10.0 test/tc_sgml_parser.rb
ruby-feedparser-0.9.7 test/tc_sgml_parser.rb
ruby-feedparser-0.9.6 test/tc_sgml_parser.rb
ruby-feedparser-0.9.5 test/tc_sgml_parser.rb
ruby-feedparser-0.9.4 test/tc_sgml_parser.rb
ruby-feedparser-0.9.3 test/tc_sgml_parser.rb