1 # Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
9 require 'plugins/loader'
12 class TestLoadable < Test::Unit::TestCase
13 RUBY_EXE = Config::CONFIG['ruby_install_name']
16 plugins = PluginLoader.base_dir
17 lib = File.join(plugins, '..')
19 Dir[File.join(plugins, '*')].each do |f|
21 Dir[File.join(f, '*.rb')].each do |rb_file|
22 `#{RUBY_EXE} -I#{lib} #{rb_file}`