summaryrefslogtreecommitdiffstats
path: root/test/rss/each_parser.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-28 03:46:13 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-28 03:46:13 +0000
commit2cfa999f7baa1b994c9a0e3fef6b05f30d2ec7d9 (patch)
tree6262080bde1c6376c96bdc05d2a6692bd9de6818 /test/rss/each_parser.rb
parent28651fcd3db70dc779fd2d8d119229d3721de34b (diff)
* lib/rss: rss library imported. [ruby-dev:22726]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss/each_parser.rb')
-rw-r--r--test/rss/each_parser.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/rss/each_parser.rb b/test/rss/each_parser.rb
new file mode 100644
index 000000000..b1ea9c5e1
--- /dev/null
+++ b/test/rss/each_parser.rb
@@ -0,0 +1,17 @@
+#!/usr/bin/env ruby
+
+require "rbconfig"
+
+c = Config::CONFIG
+ruby = File.join(c['bindir'], c['ruby_install_name'])
+
+module RSS
+ AVAILABLE_PARSERS = [ARGV.shift]
+end
+
+def load_test_file(name)
+ puts "Loading #{name} ..."
+ require name
+end
+
+load_test_file(ARGV.shift)