Skip to content

Instantly share code, notes, and snippets.

@raul
Created December 16, 2008 13:22
Show Gist options
  • Save raul/36450 to your computer and use it in GitHub Desktop.
Save raul/36450 to your computer and use it in GitHub Desktop.
# Quick & Dirty textmate command to execute the current Rails test file
#
# 1) Open Bundles > Bundle Editor > Edit commands
# 2) Select Ruby > Run and press "copy" icon (++)
# 3) Rename the new command and select it
# 4) Paste this into Command(s) and customize the activation keys
cd ../..
#/opt/local/bin/ruby -I=test $TM_FILEPATH
export RUBYLIB="$TM_BUNDLE_SUPPORT/RubyMate${RUBYLIB:+:$RUBYLIB}"
export RUBYLIB="test:$RUBYLIB"
export TM_RUBY=$(type -p "${TM_RUBY:-ruby}")
"${TM_RUBY}" -- "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment