diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-23 21:37:39 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-23 21:37:39 +0000 |
commit | f6327e732fbc8c68dae163401d283924769dee8d (patch) | |
tree | 47f2922c8db27b572148164f8de904fa569bd7de /test/rexml/test_contrib.rb | |
parent | d1c42e4f341e063d3849a3a9e3622b7261735559 (diff) | |
download | ruby-f6327e732fbc8c68dae163401d283924769dee8d.tar.gz |
Suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml/test_contrib.rb')
-rw-r--r-- | test/rexml/test_contrib.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rexml/test_contrib.rb b/test/rexml/test_contrib.rb index 7d00202c95..db7c18d027 100644 --- a/test/rexml/test_contrib.rb +++ b/test/rexml/test_contrib.rb @@ -221,7 +221,7 @@ DELIMITER <type>Book</type> <year>2000</year> </entry>" - desired_result_tree = Document.new desired_result_string + Document.new desired_result_string xpath = "/biblio/entry[not(author)]" result = XPath.first(doc, xpath) assert_equal desired_result_string, result.to_s @@ -438,7 +438,7 @@ EOF end def test_whitespace_after_xml_decl - d = Document.new <<EOL + Document.new <<EOL <?xml version='1.0'?> <blo> <wak> @@ -506,7 +506,7 @@ EOL b << c a << b - REXML::Formatters::Pretty.new.write(a,s="") + REXML::Formatters::Pretty.new.write(a,"") end def test_pos @@ -523,7 +523,7 @@ EOL testfile.puts testdata testfile.rewind assert_nothing_raised do - d = REXML::Document.new(testfile) + REXML::Document.new(testfile) end testfile.close(true) end |