From e428953d97ddac5637a6880b4f2e4675a8917b6a Mon Sep 17 00:00:00 2001 From: ihower Date: Wed, 13 Apr 2011 19:18:40 +0800 Subject: [PATCH] remove useless script --- script/autospec | 6 ------ script/spec | 10 ---------- 2 files changed, 16 deletions(-) delete mode 100755 script/autospec delete mode 100755 script/spec diff --git a/script/autospec b/script/autospec deleted file mode 100755 index 837bbd7f..00000000 --- a/script/autospec +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env ruby -gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9 -ENV['RSPEC'] = 'true' # allows autotest to discover rspec -ENV['AUTOTEST'] = 'true' # allows autotest to run w/ color on linux -system((RUBY_PLATFORM =~ /mswin|mingw/ ? 'autotest.bat' : 'autotest'), *ARGV) || - $stderr.puts("Unable to find autotest. Please install ZenTest or fix your PATH") diff --git a/script/spec b/script/spec deleted file mode 100755 index 46fdbe6e..00000000 --- a/script/spec +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env ruby -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