summaryrefslogtreecommitdiff
path: root/test/rexml/parse/test_document_type_declaration.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 13:10:55 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 13:10:55 +0000
commitba3d2f4ac20bec871fe96a393d923d0cbb0fd96a (patch)
tree897a0308607db1dad21eef1fee86b351e93ebfa5 /test/rexml/parse/test_document_type_declaration.rb
parent313fa180333a1eb4d1fa1542930e83f8d77e6b2d (diff)
* test/rexml/test_contrib.rb: Indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml/parse/test_document_type_declaration.rb')
-rw-r--r--test/rexml/parse/test_document_type_declaration.rb56
1 files changed, 28 insertions, 28 deletions
diff --git a/test/rexml/parse/test_document_type_declaration.rb b/test/rexml/parse/test_document_type_declaration.rb
index fb7cee5c3b..59fe561155 100644
--- a/test/rexml/parse/test_document_type_declaration.rb
+++ b/test/rexml/parse/test_document_type_declaration.rb
@@ -2,48 +2,48 @@ require "test/unit"
require "rexml/document"
module REXMLTests
-class TestParseDocumentTypeDeclaration < Test::Unit::TestCase
- private
- def xml(internal_subset)
- <<-XML
+ class TestParseDocumentTypeDeclaration < Test::Unit::TestCase
+ private
+ def xml(internal_subset)
+ <<-XML
<!DOCTYPE r SYSTEM "urn:x-rexml:test" [
#{internal_subset}
]>
<r/>
- XML
- end
+ XML
+ end
- def parse(internal_subset)
- REXML::Document.new(xml(internal_subset)).doctype
- end
+ def parse(internal_subset)
+ REXML::Document.new(xml(internal_subset)).doctype
+ end
- class TestMixed < self
- def test_entity_element
- doctype = parse(<<-INTERNAL_SUBSET)
+ class TestMixed < self
+ def test_entity_element
+ doctype = parse(<<-INTERNAL_SUBSET)
<!ENTITY entity-name "entity content">
<!ELEMENT element-name EMPTY>
- INTERNAL_SUBSET
- assert_equal([REXML::Entity, REXML::ElementDecl],
- doctype.children.collect(&:class))
- end
+ INTERNAL_SUBSET
+ assert_equal([REXML::Entity, REXML::ElementDecl],
+ doctype.children.collect(&:class))
+ end
- def test_attlist_entity
- doctype = parse(<<-INTERNAL_SUBSET)
+ def test_attlist_entity
+ doctype = parse(<<-INTERNAL_SUBSET)
<!ATTLIST attribute-list-name attribute-name CDATA #REQUIRED>
<!ENTITY entity-name "entity content">
- INTERNAL_SUBSET
- assert_equal([REXML::AttlistDecl, REXML::Entity],
- doctype.children.collect(&:class))
- end
+ INTERNAL_SUBSET
+ assert_equal([REXML::AttlistDecl, REXML::Entity],
+ doctype.children.collect(&:class))
+ end
- def test_notation_attlist
- doctype = parse(<<-INTERNAL_SUBSET)
+ def test_notation_attlist
+ doctype = parse(<<-INTERNAL_SUBSET)
<!NOTATION notation-name SYSTEM "system-literal">
<!ATTLIST attribute-list-name attribute-name CDATA #REQUIRED>
- INTERNAL_SUBSET
- assert_equal([REXML::NotationDecl, REXML::AttlistDecl],
- doctype.children.collect(&:class))
+ INTERNAL_SUBSET
+ assert_equal([REXML::NotationDecl, REXML::AttlistDecl],
+ doctype.children.collect(&:class))
+ end
end
end
end
-end