summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-10-24 22:13:04 -0600
committermo khan <mo@mokhan.ca>2013-10-24 22:13:04 -0600
commit0648fa48042f78ac1c6621f613107e86ca29b294 (patch)
tree01a2944254b2a2651a5999f0bfe81c41a82624ab /script
parent7080febdc42ac8a8046314ed15781e9a5caa18bc (diff)
remove dead code.
Diffstat (limited to 'script')
-rwxr-xr-xscript/test35
1 files changed, 0 insertions, 35 deletions
diff --git a/script/test b/script/test
deleted file mode 100755
index 7f7a13e8..00000000
--- a/script/test
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-#
-# From Destroy All Software screencast #10, at:
-# http://destroyallsoftware.com/screencasts/catalog/fast-tests-with-and-without-rails
-#
-# Put this in the script/ directory of your Rails app, then run it with a spec
-# filename. If the spec uses spec_helper, it'll be run inside Bundler.
-# Otherwise, it'll be run directly with whatever `rspec` executable is on the
-# path.
-
-set -e
-
-need_rails=1
-
-if [ $# -gt 0 ]; then # we have args
- filename=$1
- # Remove trailing line numbers from filename, e.g. spec/my_spec.rb:33
- grep_filename=`echo $1 | sed 's/:.*$//g'`
-
- (set +e; grep -r '\bspec_helper\b' $grep_filename) > /dev/null
- if [ $? -eq 1 ]; then # no match; we have a stand-alone spec
- need_rails=''
- fi
-else # we have no args
- filename='spec'
-fi
-
-command='rspec'
-
-if [ $need_rails ]; then
- command="ruby -S bundle exec $command"
-fi
-
-RAILS_ENV=test $command $filename
-