diff options
| author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-17 01:04:31 +0000 |
|---|---|---|
| committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-17 01:04:31 +0000 |
| commit | d6ee50245ad9f6773ad087905bd9d3dd0c537a30 (patch) | |
| tree | 69741dee756af0a86c03e3bae8d2574a839fc426 /test/rss/test_parser.rb | |
| parent | 02ca9a241096ea6f386203418d8a6e4d35163ec0 (diff) | |
| download | ruby-d6ee50245ad9f6773ad087905bd9d3dd0c537a30.tar.gz ruby-d6ee50245ad9f6773ad087905bd9d3dd0c537a30.tar.xz ruby-d6ee50245ad9f6773ad087905bd9d3dd0c537a30.zip | |
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
* 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.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10299 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" |
