diff options
author | Louise Crow <louise.crow@gmail.com> | 2011-02-23 14:08:46 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2011-02-23 14:08:46 +0000 |
commit | 66314753bf952538910b712dab2330d2bba5518f (patch) | |
tree | fec315d1757b394ca13371a1f765a273eb200109 /script/spec | |
parent | 5dbf3a24e23114077052ceff36be49a3aaf46182 (diff) |
Adding spec conf files.
Diffstat (limited to 'script/spec')
-rwxr-xr-x | script/spec | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/script/spec b/script/spec index 28e8676cc..46fdbe6e4 100755 --- a/script/spec +++ b/script/spec @@ -1,4 +1,10 @@ #!/usr/bin/env ruby -$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../vendor/plugins/rspec/lib")) -require 'spec' +if ARGV.any? {|arg| %w[--drb -X --generate-options -G --help -h --version -v].include?(arg)} + require 'rubygems' unless ENV['NO_RUBYGEMS'] +else + gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9 + ENV["RAILS_ENV"] ||= 'test' + require File.expand_path(File.dirname(__FILE__) + "/../config/environment") unless defined?(RAILS_ROOT) +end +require 'spec/autorun' exit ::Spec::Runner::CommandLine.run |