Fixed tests to run with relocated test data
M test/test_encoding.rb +1 -1
@@ 6,7 6,7 @@ require 'rexml/source'
 class EncodingTester < Test::Unit::TestCase
   include REXML
 
-  TEST_DIR="test/xml"
+  TEST_DIR="test/data"
 
   def setup
     @encoded = "<?xml version='1.0' encoding='ISO-8859-3'?>"+

          
M test/test_jaxen.rb +1 -1
@@ 33,7 33,7 @@ class JaxenTester < Test::Unit::TestCase
   def test_web2 ; test("web2") ; end
 
   def test( fname )
-    xml_dir = "test/xml"
+    xml_dir = "test/data"
 #    Dir.entries( xml_dir ).each { |fname|
 #      if fname =~ /\.xml$/
         file = File.new( File.join( xml_dir, fname+".xml" ))

          
M test/test_rexml_issuezilla.rb +1 -1
@@ 5,7 5,7 @@ require 'rexml/document'
 
 class TestIssuezillaParsing < Test::Unit::TestCase
   def test_rexml
-    doc = REXML::Document.new(File.new("test/xml/ofbiz-issues-full-177.xml"))
+    doc = REXML::Document.new(File.new("test/data/ofbiz-issues-full-177.xml"))
     ctr = 1
     doc.root.each_element('//issue') do |issue|
       assert_equal( ctr, issue.elements['issue_id'].text.to_i )

          
M test/test_sax.rb +1 -1
@@ 267,7 267,7 @@ class SAX2Tester < Test::Unit::TestCase
     include REXML::SAX2Listener 
   end  
   def test_ticket_68
-    parser = REXML::Parsers::SAX2Parser.new( File.new('test/xml/ticket_68.xml') ) 
+    parser = REXML::Parsers::SAX2Parser.new( File.new('test/data/ticket_68.xml') ) 
     parser.listen( Ticket68.new ) 
     begin
       parser.parse

          
M test/test_xpath.rb +3 -3
@@ 895,7 895,7 @@ class XPathTester < Test::Unit::TestCase
   def test_ticket_56
     namespaces = {'h' => 'http://www.w3.org/1999/xhtml'}
 
-    finaldoc = REXML::Document.new(File.read('test/xml/google.2.xml'))
+    finaldoc = REXML::Document.new(File.read('test/data/google.2.xml'))
 
     column_headers = []
 

          
@@ 995,13 995,13 @@ EOF
   end  
 
   def test_ticket_61_text
-    file = File.open( "test/xml/ticket_61.xml" )
+    file = File.open( "test/data/ticket_61.xml" )
     doc = REXML::Document.new file
     ticket_61_fixture( doc, "//div[text()='Add' and @class='ButtonText']" )
   end
 
   def test_ticket_61_contains
-    file = File.open( "test/xml/ticket_61.xml" )
+    file = File.open( "test/data/ticket_61.xml" )
     doc = REXML::Document.new file
     ticket_61_fixture( doc, "//div[contains(.,'Add') and @class='ButtonText']" )
   end