2 if ARGV.any? {|arg| %w[--drb -X --generate-options -G --help -h --version -v].include?(arg)}
3 require 'rubygems' unless ENV['NO_RUBYGEMS']
5 gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
6 ENV["RAILS_ENV"] ||= 'test'
7 require File.expand_path(File.dirname(__FILE__) + "/../config/environment") unless defined?(RAILS_ROOT)
10 exit ::Spec::Runner::CommandLine.run