summaryrefslogtreecommitdiff
path: root/test/rss/each_parser.rb
diff options
context:
space:
mode:
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 0000000000..b1ea9c5e11
--- /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)