summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-31 12:38:41 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-31 12:38:41 +0000
commit1251f51ee7ca784d923ad1400778885631063292 (patch)
tree5c1f2134622e00dd3a59d08a121b2ca8c6c33074
parent5a5ede7359a8817ad64f0aa84983926275bd1b20 (diff)
* test/rexml/test_notationdecl_mixin.rb (TestNotationDecl#test_name):
Move to ... * test/rexml/test_notationdecl_parsetest.rb (TestNotationDecl#test_name): ... here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog9
-rw-r--r--test/rexml/test_notationdecl_mixin.rb4
-rw-r--r--test/rexml/test_notationdecl_parsetest.rb5
3 files changed, 14 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 847325e31c..f344dd172c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Wed Jul 31 21:37:51 2013 Kouhei Sutou <kou@cozmixng.org>
+
+ * test/rexml/test_notationdecl_mixin.rb (TestNotationDecl#test_name):
+ Move to ...
+ * test/rexml/test_notationdecl_parsetest.rb
+ (TestNotationDecl#test_name): ... here.
+
+Wed Jul 31 21:37:47 2013 Kouhei Sutou <kou@cozmixng.org>
+
Wed Jul 31 21:31:49 2013 Kouhei Sutou <kou@cozmixng.org>
* test/rexml/test_notationdecl_parsetest.rb: Remove setup because it
diff --git a/test/rexml/test_notationdecl_mixin.rb b/test/rexml/test_notationdecl_mixin.rb
index 110db0bfdb..18095b686e 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 547195d47b..78787a41ab 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'>