Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
docs: Update Rails test task to run using name (#28574)
Andy Waite1eb948654a5f
diff --git a/docs/src/languages/ruby.md b/docs/src/languages/ruby.mdindex f400024d5c2..a80c2bbe55a 100644--- a/docs/src/languages/ruby.md+++ b/docs/src/languages/ruby.md@@ -291,14 +291,15 @@ To run tests in your Ruby project, you can set up custom tasks in your local `.z```json[{- "label": "test $ZED_RELATIVE_FILE:$ZED_ROW",- "command": "bin/rails",- "args": ["test", "\"$ZED_RELATIVE_FILE:$ZED_ROW\""],+ "label": "test $ZED_RELATIVE_FILE -n /$ZED_SYMBOL/",+ "command": "bin/rails test $ZED_RELATIVE_FILE -n /$ZED_SYMBOL/","tags": ["ruby-test"]}]```+Note: We can't use `args` here because of the way quotes are handled.+### MinitestPlain minitest does not support running tests by line number, only by name, so we need to use `$ZED_SYMBOL` instead: