From 3e04769926f302577c10310ec629b2f5c4a84d8d Mon Sep 17 00:00:00 2001 From: kou Date: Wed, 31 Jul 2013 12:44:24 +0000 Subject: * test/rexml/test_notationdecl_parsetest.rb: Group tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rexml/test_notationdecl_parsetest.rb | 32 +++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to 'test') diff --git a/test/rexml/test_notationdecl_parsetest.rb b/test/rexml/test_notationdecl_parsetest.rb index 78787a41ab..2f0836c817 100644 --- a/test/rexml/test_notationdecl_parsetest.rb +++ b/test/rexml/test_notationdecl_parsetest.rb @@ -2,20 +2,6 @@ require 'test/unit' require 'rexml/document' class TestNotationDecl < Test::Unit::TestCase - def test_name - doctype = parse("") - assert_equal("name", doctype.notation("name").name) - end - - def test_notation - doctype = parse(<<-INTERNAL_SUBSET) - - - INTERNAL_SUBSET - assert(doctype.notation('n1'), "Testing notation n1") - assert(doctype.notation('n2'), "Testing notation n2") - end - private def xml(internal_subset) <<-XML @@ -29,4 +15,22 @@ class TestNotationDecl < Test::Unit::TestCase def parse(internal_subset) REXML::Document.new(xml(internal_subset)).doctype end + + class TestCommon < self + def test_name + doctype = parse("") + assert_equal("name", doctype.notation("name").name) + end + end + + class TestExternID < self + def test_notation + doctype = parse(<<-INTERNAL_SUBSET) + + + INTERNAL_SUBSET + assert(doctype.notation('n1'), "Testing notation n1") + assert(doctype.notation('n2'), "Testing notation n2") + end + end end -- cgit v1.2.3