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_listener.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_listener.rb')
-rw-r--r-- | test/rexml/test_listener.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/rexml/test_listener.rb b/test/rexml/test_listener.rb index e52a7e2b0f..c9b49d9abb 100644 --- a/test/rexml/test_listener.rb +++ b/test/rexml/test_listener.rb @@ -1,9 +1,12 @@ # coding: binary +require 'rexml_test_utils' + require 'rexml/document' require 'rexml/streamlistener' class BaseTester < Test::Unit::TestCase + include REXMLTestUtils def test_empty return unless defined? @listener # Empty. @@ -90,7 +93,7 @@ class BaseTester < Test::Unit::TestCase end assert_equal( 'é', a.value) doc = REXML::Document.parse_stream( - File::new("test/data/stream_accents.xml"), + File::new(fixture_path("stream_accents.xml")), AccentListener::new ) end |