# docs: Update Rails test task to run using name \(\#28574\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/1eb948654a5f0686bbf73f4b62d83d9c999c236e)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 1eb948654a5f0686bbf73f4b62d83d9c999c236e

Requested commit: 1eb948654a5f0686bbf73f4b62d83d9c999c236e

Commit: 1eb948654a5f0686bbf73f4b62d83d9c999c236e

Tree: 3d6503e3bd1c5c79bb8b96de233e79495ffcb298

Author: Andy Waite

Committer: GitHub

## Message

````
docs: Update Rails test task to run using name (#28574)

The author of Rails' minitest integration
[recommended](https://github.com/zed-extensions/ruby/issues/56#issuecomment-2795010202)
using the test name rather than line number.

This solves the problem in
https://github.com/zed-extensions/ruby/issues/56.

Note that everything is within `command`. I first tried using `args`:

```json
{
  "command": "bin/rails",
  "args": ["test", "$ZED_RELATIVE_FILE -n /$ZED_SYMBOL/"],
  "tags": ["ruby-test"]
}
```
but minitest receives this as:

```
Run options: -n "/\"foo bar\"/" --seed 31855
```

which doesn't match due to the escaping.

Release Notes:

- N/A
````

## Parents

- [35da1502e1d5032cab7fe29315cfa1584568a51e](https://git.cafe/gitcafe/zed/commit/35da1502e1d5032cab7fe29315cfa1584568a51e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/1eb948654a5f0686bbf73f4b62d83d9c999c236e?format=markdown)
