We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4696b8e + 5233dbe commit d04a31cCopy full SHA for d04a31c
src/_rails
@@ -79,6 +79,7 @@ __rails_commands() {
79
profiler'[Get profile information from a piece of code]'
80
plugin'[Install a plugin]'
81
{runner,r}'[Run a piece of code in the application environment]'
82
+ {test,t}'[Run tests]'
83
)
84
else
85
commands=(
@@ -594,6 +595,24 @@ _rails_r() {
594
595
_rails_runner
596
}
597
598
+_rails_test() {
599
+ local context state line curcontext="$curcontext"
600
+
601
+ _arguments -C \
602
+ ': :->path'
603
604
+ case "$state" in
605
+ path)
606
+ _alternative \
607
+ 'files:filename:_files -g "*.rb"'
608
+ ;;
609
+ esac
610
+}
611
612
+_rails_t() {
613
+ _rails_test
614
615
616
_rails "$@"
617
618
# Local Variables:
0 commit comments