diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-25 03:54:29 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-25 03:54:29 +0000 |
commit | 3041fdae15bf58d5035bc52c42f7255fcb830622 (patch) | |
tree | fa2ac64a12c7374e4fd0949b8aa6084afcb1d6bc /test/rss/test_parser.rb | |
parent | 02569404e41a4633aacfaed4d3a5369c8bae9c1b (diff) | |
download | ruby-3041fdae15bf58d5035bc52c42f7255fcb830622.tar.gz ruby-3041fdae15bf58d5035bc52c42f7255fcb830622.tar.xz ruby-3041fdae15bf58d5035bc52c42f7255fcb830622.zip |
* lib/rss/rss.rb: added backward compatibility codes.
* lib/rss/parser.rb: ditto.
* test/rss/test_parser.rb: ditto.
* test/rss/test_2.0.rb: ditto.
* test/rss/test_content.rb: use #__send__ instead of #funcall for
no private method.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss/test_parser.rb')
-rw-r--r-- | test/rss/test_parser.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/rss/test_parser.rb b/test/rss/test_parser.rb index d6de0699a..f410b1b4f 100644 --- a/test/rss/test_parser.rb +++ b/test/rss/test_parser.rb @@ -1,4 +1,14 @@ -require "fileutils" +begin + require "fileutils" +rescue LoadError + module FileUtils + module_function + def rm_f(target) + File.unlink(target) + rescue Errno::ENOENT + end + end +end require "rss-testcase" |