summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/rexml/test_notationdecl_mixin.rb4
-rw-r--r--test/rexml/test_notationdecl_parsetest.rb5
2 files changed, 5 insertions, 4 deletions
diff --git a/test/rexml/test_notationdecl_mixin.rb b/test/rexml/test_notationdecl_mixin.rb
index 110db0bfdb1..18095b686ea 100644
--- a/test/rexml/test_notationdecl_mixin.rb
+++ b/test/rexml/test_notationdecl_mixin.rb
@@ -29,10 +29,6 @@ class TestNotationDeclMixin < Test::Unit::TestCase
@doctype = REXML::Document.new(doc_string).doctype
end
- def test_name
- assert_equal('n1', @doctype.notation('n1').name)
- end
-
def test_public_2
assert_equal(@pubid1, @doctype.notation('n1').public)
assert_equal(@pubid2, @doctype.notation('n2').public)
diff --git a/test/rexml/test_notationdecl_parsetest.rb b/test/rexml/test_notationdecl_parsetest.rb
index 547195d47b3..78787a41abe 100644
--- a/test/rexml/test_notationdecl_parsetest.rb
+++ b/test/rexml/test_notationdecl_parsetest.rb
@@ -2,6 +2,11 @@ require 'test/unit'
require 'rexml/document'
class TestNotationDecl < Test::Unit::TestCase
+ def test_name
+ doctype = parse("<!NOTATION name PUBLIC 'urn:public-id'>")
+ assert_equal("name", doctype.notation("name").name)
+ end
+
def test_notation
doctype = parse(<<-INTERNAL_SUBSET)
<!NOTATION n1 PUBLIC "-//HM//NOTATION TEST1//EN" 'urn:x-henrikmartensson.org:test5'>