diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-17 13:46:56 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-17 13:46:56 +0000 |
commit | 2a15d25a5941301b5be6bc29eb4ac97d5aafe3dc (patch) | |
tree | 32ed30c63502d98c54555945ded41a4d0161c662 /test/rexml/test_martin_fowler.rb | |
parent | 146bf4fdafefc780d65f20c983d65f9cbe3bfe2d (diff) |
* 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_martin_fowler.rb')
-rw-r--r-- | test/rexml/test_martin_fowler.rb | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/test/rexml/test_martin_fowler.rb b/test/rexml/test_martin_fowler.rb index bdbf487ed4..1b29c3df88 100644 --- a/test/rexml/test_martin_fowler.rb +++ b/test/rexml/test_martin_fowler.rb @@ -2,6 +2,20 @@ require 'test/unit' require 'rexml/document' class OrderTester < Test::Unit::TestCase + DOC = <<END +<paper> +<title>Remove this element and figs order differently</title> +<figure src="fig1"/> +<figure src="fig2"/> +<p>Para of text</p> +<p>Remove this and figs order differently</p> +<section> +<figure src="fig3"/> +</section> +<figure src="fig4"/> +</paper> +END + def initialize n @doc = REXML::Document.new(DOC) @figs = REXML::XPath.match(@doc,'//figure') @@ -21,18 +35,3 @@ class OrderTester < Test::Unit::TestCase assert_equal 'fig4', @figs[3].attributes['src'] end end - - -DOC = <<END -<paper> -<title>Remove this element and figs order differently</title> -<figure src="fig1"/> -<figure src="fig2"/> -<p>Para of text</p> -<p>Remove this and figs order differently</p> -<section> -<figure src="fig3"/> -</section> -<figure src="fig4"/> -</paper> -END |