require "rubygems" require "spec" class RspecExampleSuite def run options = ::Spec::Runner::OptionParser.new.parse(ARGV.dup, STDERR, STDOUT, false) $behaviour_runner = options.create_behaviour_runner require_specs puts "Running Rspec Example Suite" $behaviour_runner.run(ARGV, false) end def require_specs dir = File.dirname(__FILE__) Dir["#{dir}/rr/rspec/**/*_example.rb"].each do |file| require file end end end if $0 == __FILE__ RspecExampleSuite.new.run end