From 352c71f8a6a4b8138d08ef5660d2aac6a20fa110 Mon Sep 17 00:00:00 2001 From: Andy Waite Date: Sat, 22 Mar 2025 18:30:34 -0400 Subject: [PATCH] docs: Update Minitest example to clarify it only works with Rails (#27311) The example in the docs works with Rails but not plain minitest. There are workarounds such as the [`m`](https://github.com/qrush/m) gem, or adding ActiveSupport to a non-Rails project, but I feel they are beyond the scope of the docs here. Release Notes: - N/A --- docs/src/languages/ruby.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/languages/ruby.md b/docs/src/languages/ruby.md index 13d75cc5f069dea9aed0536789602f7abd9b510d..99fcb865cf681dcb976f7076bb45a62f1d854ed1 100644 --- a/docs/src/languages/ruby.md +++ b/docs/src/languages/ruby.md @@ -269,7 +269,7 @@ end To run tests in your Ruby project, you can set up custom tasks in your local `.zed/tasks.json` configuration file. These tasks can be defined to work with different test frameworks like Minitest, RSpec, quickdraw, and tldr. Below are some examples of how to set up these tasks to run your tests from within your editor. -### Minitest +### Minitest with Rails ```json [ @@ -282,6 +282,8 @@ 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. + ### RSpec ```json