lib/plugins/ruby/ruby.plugin.zsh in zsh_dots-0.5.1 vs lib/plugins/ruby/ruby.plugin.zsh in zsh_dots-0.5.3
- old
+ new
@@ -47,12 +47,15 @@
# Disable autocorrect
alias rtest='nocorrect rtest_bare'
alias rtest_rake='nocorrect rtest_rake'
-# Shorthand aliases
-alias t='rtest'
-alias rts='rtest_rake'
+# Framework-agnostic testing command.
+run_single_test() {
+ if [ -f "spec/spec_helper.rb" ]; then
+ bundle exec rspec $@;
+ else
+ rtest $@;
+ fi
+}
-# Run a ruby script
-alias rb='ruby'