diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-17 13:31:16 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-17 13:31:16 +0000 |
commit | 146bf4fdafefc780d65f20c983d65f9cbe3bfe2d (patch) | |
tree | 4a738e18953b7bab6b063a7b1cc58cd668fbd974 /test/rexml/test_rexml_issuezilla.rb | |
parent | d357d7279ab23275b769b594a2c4670797afc353 (diff) | |
download | ruby-146bf4fdafefc780d65f20c983d65f9cbe3bfe2d.tar.gz |
* test/rexml/: fix fixture data path. All REXML tests are worked.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml/test_rexml_issuezilla.rb')
-rw-r--r-- | test/rexml/test_rexml_issuezilla.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/rexml/test_rexml_issuezilla.rb b/test/rexml/test_rexml_issuezilla.rb index bb878340b4..a0ebfa77dd 100644 --- a/test/rexml/test_rexml_issuezilla.rb +++ b/test/rexml/test_rexml_issuezilla.rb @@ -1,11 +1,10 @@ -#!/sw/bin/ruby - -require 'test/unit' +require 'rexml_test_utils' require 'rexml/document' class TestIssuezillaParsing < Test::Unit::TestCase + include REXMLTestUtils def test_rexml - doc = REXML::Document.new(File.new("test/data/ofbiz-issues-full-177.xml")) + doc = REXML::Document.new(File.new(fixture_path("ofbiz-issues-full-177.xml"))) ctr = 1 doc.root.each_element('//issue') do |issue| assert_equal( ctr, issue.elements['issue_id'].text.to_i ) |