aboutsummaryrefslogtreecommitdiffstats
path: root/test/rexml/xpath/test_node.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/xpath/test_node.rb
parent313fa180333a1eb4d1fa1542930e83f8d77e6b2d (diff)
downloadruby-ba3d2f4ac20bec871fe96a393d923d0cbb0fd96a.tar.gz
* 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/xpath/test_node.rb')
-rw-r--r--test/rexml/xpath/test_node.rb36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/rexml/xpath/test_node.rb b/test/rexml/xpath/test_node.rb
index f0109be9ff..aec2de1cfe 100644
--- a/test/rexml/xpath/test_node.rb
+++ b/test/rexml/xpath/test_node.rb
@@ -5,38 +5,38 @@ require_relative "../rexml_test_utils"
require "rexml/document"
module REXMLTests
-class TestXPathNode < Test::Unit::TestCase
- def matches(xml, xpath)
- document = REXML::Document.new(xml)
- REXML::XPath.each(document, xpath).collect(&:to_s)
- end
+ class TestXPathNode < Test::Unit::TestCase
+ def matches(xml, xpath)
+ document = REXML::Document.new(xml)
+ REXML::XPath.each(document, xpath).collect(&:to_s)
+ end
- class TestQName < self
- def test_ascii
- xml = <<-XML
+ class TestQName < self
+ def test_ascii
+ xml = <<-XML
<?xml version="1.0" encoding="UTF-8"?>
<root>
<ascii>
<child>child</child>
</ascii>
</root>
- XML
- assert_equal(["<child>child</child>"],
- matches(xml, "/root/ascii/child"))
- end
+ XML
+ assert_equal(["<child>child</child>"],
+ matches(xml, "/root/ascii/child"))
+ end
- def test_non_ascii
- xml = <<-XML
+ def test_non_ascii
+ xml = <<-XML
<?xml version="1.0" encoding="UTF-8"?>
<root>
<non-àscii>
<child>child</child>
</non-àscii>
</root>
- XML
- assert_equal(["<child>child</child>"],
- matches(xml, "/root/non-àscii/child"))
+ XML
+ assert_equal(["<child>child</child>"],
+ matches(xml, "/root/non-àscii/child"))
+ end
end
end
end
-end