diff options
Diffstat (limited to 'test/rss/test_parser.rb')
-rw-r--r-- | test/rss/test_parser.rb | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/test/rss/test_parser.rb b/test/rss/test_parser.rb index 49b441bf96..59458ef51b 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) |