From 500964a6fae7e7b3fd170ea8e93db1f8a77562df Mon Sep 17 00:00:00 2001 From: Andy Waite Date: Wed, 2 Apr 2025 15:24:59 -0400 Subject: [PATCH] docs: Add example of Ruby plain minitest task (#27607) Via https://github.com/zed-industries/zed/issues/12579#issuecomment-2143972765 Release Notes: - N/A --- docs/src/languages/ruby.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/src/languages/ruby.md b/docs/src/languages/ruby.md index 44be3a8681..6a94392704 100644 --- a/docs/src/languages/ruby.md +++ b/docs/src/languages/ruby.md @@ -299,7 +299,20 @@ To run tests in your Ruby project, you can set up custom tasks in your local `.z ] ``` -Note: Plain minitest does not support running tests by line number. +### Minitest + +Plain minitest does not support running tests by line number, only by name, so we need to use `$ZED_SYMBOL` instead: + +```json +[ + { + "label": "-Itest $ZED_RELATIVE_FILE -n /$ZED_SYMBOL/", + "command": "bundle exec ruby", + "args": ["-Itest", "$ZED_RELATIVE_FILE", "-n /$ZED_SYMBOL/"], + "tags": ["ruby-test"] + } +] +``` ### RSpec