aboutsummaryrefslogtreecommitdiffstats
path: root/test/rexml/test_core.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-17 13:46:56 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-17 13:46:56 +0000
commit2a15d25a5941301b5be6bc29eb4ac97d5aafe3dc (patch)
tree32ed30c63502d98c54555945ded41a4d0161c662 /test/rexml/test_core.rb
parent146bf4fdafefc780d65f20c983d65f9cbe3bfe2d (diff)
downloadruby-2a15d25a5941301b5be6bc29eb4ac97d5aafe3dc.tar.gz
* test/rexml/: untabify.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml/test_core.rb')
-rw-r--r--test/rexml/test_core.rb52
1 files changed, 26 insertions, 26 deletions
diff --git a/test/rexml/test_core.rb b/test/rexml/test_core.rb
index 4fd5b07c99..79c6dd8487 100644
--- a/test/rexml/test_core.rb
+++ b/test/rexml/test_core.rb
@@ -1104,9 +1104,9 @@ EOL
end
def test_transitive
- doc = REXML::Document.new( "<a/>")
- s = ""
- doc.write( s, 0, true )
+ doc = REXML::Document.new( "<a/>")
+ s = ""
+ doc.write( s, 0, true )
end
# This is issue #40
@@ -1145,25 +1145,25 @@ EOL
end
- def test_ticket_58
- doc = REXML::Document.new
- doc << REXML::XMLDecl.default
- doc << REXML::Element.new("a")
-
- str = ""
- doc.write(str)
-
- assert_equal("<a/>", str)
+ def test_ticket_58
+ doc = REXML::Document.new
+ doc << REXML::XMLDecl.default
+ doc << REXML::Element.new("a")
+
+ str = ""
+ doc.write(str)
+
+ assert_equal("<a/>", str)
- doc = REXML::Document.new
- doc << REXML::XMLDecl.new("1.0", "UTF-8")
- doc << REXML::Element.new("a")
-
- str = ""
- doc.write(str)
-
- assert_equal("<?xml version='1.0' encoding='UTF-8'?><a/>", str)
- end
+ doc = REXML::Document.new
+ doc << REXML::XMLDecl.new("1.0", "UTF-8")
+ doc << REXML::Element.new("a")
+
+ str = ""
+ doc.write(str)
+
+ assert_equal("<?xml version='1.0' encoding='UTF-8'?><a/>", str)
+ end
# Incomplete tags should generate an error
def test_ticket_53
@@ -1251,9 +1251,9 @@ EOL
def test_ticket_85
xml = <<ENDXML
<foo>
- <bar>
- <bob name='jimmy'/>
- </bar>
+ <bar>
+ <bob name='jimmy'/>
+ </bar>
</foo>
ENDXML
@@ -1276,7 +1276,7 @@ ENDXML
# Output directives should override whitespace directives.
assert_equal( output1, output2 )
- # The base case.
+ # The base case.
d = Document.new(yml)
f.write( d, output3="" )
@@ -1286,7 +1286,7 @@ ENDXML
f.write( d, output4="" )
assert_equal( output3.strip, output4.strip )
- end
+ end
def test_ticket_91
source="<root>