source:
ruby/tags/release-0.5.0/script/spec
Last change on this file was 194, checked in by , 15 years ago | |
---|---|
|
|
File size: 420 bytes |
Line | |
---|---|
1 | #!/usr/bin/env ruby |
2 | if ARGV.any? {|arg| %w[--drb -X --generate-options -G --help -h --version -v].include?(arg)} |
3 | require 'rubygems' unless ENV['NO_RUBYGEMS'] |
4 | else |
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) |
8 | end |
9 | require 'spec/autorun' |
10 | exit ::Spec::Runner::CommandLine.run |
Note:
See TracBrowser
for help on using the repository browser.