require 'rubygems' require 'spec' args = ARGV.dup unless args.include?("-f") || args.include?("--format") args << "--format" args << "specdoc" end args << $0 $behaviour_runner = ::Spec::Runner::OptionParser.new.create_behaviour_runner(args, false, STDOUT, STDERR) dir = File.dirname(__FILE__) Dir["#{dir}/**/*_spec.rb"].each do |file| require File.expand_path(file) end $behaviour_runner.run(nil, true)