From 5a5ede7359a8817ad64f0aa84983926275bd1b20 Mon Sep 17 00:00:00 2001 From: kou Date: Wed, 31 Jul 2013 12:32:24 +0000 Subject: * test/rexml/test_notationdecl_parsetest.rb: Remove setup because it doesn't share anything with other tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rexml/test_notationdecl_parsetest.rb | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'test') diff --git a/test/rexml/test_notationdecl_parsetest.rb b/test/rexml/test_notationdecl_parsetest.rb index a1fa9fb67e..547195d47b 100644 --- a/test/rexml/test_notationdecl_parsetest.rb +++ b/test/rexml/test_notationdecl_parsetest.rb @@ -2,20 +2,26 @@ require 'test/unit' require 'rexml/document' class TestNotationDecl < Test::Unit::TestCase - def setup - doc_string = <<-'XMLEND' - - ]> - - XMLEND - @doctype = REXML::Document.new(doc_string).doctype + INTERNAL_SUBSET + assert(doctype.notation('n1'), "Testing notation n1") + assert(doctype.notation('n2'), "Testing notation n2") end - def test_notation - assert(@doctype.notation('n1'), "Testing notation n1") - assert(@doctype.notation('n2'), "Testing notation n2") + private + def xml(internal_subset) + <<-XML + + + XML end + def parse(internal_subset) + REXML::Document.new(xml(internal_subset)).doctype + end end -- cgit v1.2.3