summaryrefslogtreecommitdiffstats
path: root/test/rss/test_parser.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-05 03:03:05 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-05 03:03:05 +0000
commit39cb444582460b2bc5351cea37c92ffb7a370682 (patch)
tree0a70c0031e53d40f05e846486b25f91070274d66 /test/rss/test_parser.rb
parentb870981642399af0ce1ba819492ed01af987af4b (diff)
downloadruby-39cb444582460b2bc5351cea37c92ffb7a370682.tar.gz
ruby-39cb444582460b2bc5351cea37c92ffb7a370682.tar.xz
ruby-39cb444582460b2bc5351cea37c92ffb7a370682.zip
* lib/rss, sample/rss, test/rss:
- 0.1.7 -> 0.1.8. - supported <itunes:XXX>. - reverted backward incompatibility API changes introduced 0.1.7. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss/test_parser.rb')
-rw-r--r--test/rss/test_parser.rb14
1 files changed, 2 insertions, 12 deletions
diff --git a/test/rss/test_parser.rb b/test/rss/test_parser.rb
index 49b441bf9..45f31e201 100644
--- a/test/rss/test_parser.rb
+++ b/test/rss/test_parser.rb
@@ -1,14 +1,4 @@
-begin
- require "fileutils"
-rescue LoadError
- module FileUtils
- module_function
- def rm_f(target)
- File.unlink(target)
- rescue Errno::ENOENT
- end
- end
-end
+require 'fileutils'
require "rss-testcase"
@@ -28,7 +18,7 @@ EOR
@rss_file = "rss10.rdf"
File.open(@rss_file, "w") {|f| f.print(@rss10)}
end
-
+
def teardown
Parser.default_parser = @_default_parser
FileUtils.rm_f(@rss_file)