Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

ruby: Improve Ruby test and debug task configurations (#36691)

Vitaly Slobodin81cb24810b88
diff --git a/docs/src/languages/ruby.md b/docs/src/languages/ruby.md
index 6f530433bd0..ef4b026db1d 100644
--- a/docs/src/languages/ruby.md
+++ b/docs/src/languages/ruby.md
@@ -299,6 +299,7 @@ To run tests in your Ruby project, you can set up custom tasks in your local `.z
"-n",
"\"$ZED_CUSTOM_RUBY_TEST_NAME\""
],
+ "cwd": "$ZED_WORKTREE_ROOT",
"tags": ["ruby-test"]
}
]
@@ -321,6 +322,7 @@ Plain minitest does not support running tests by line number, only by name, so w
"-n",
"\"$ZED_CUSTOM_RUBY_TEST_NAME\""
],
+ "cwd": "$ZED_WORKTREE_ROOT",
"tags": ["ruby-test"]
}
]
@@ -334,6 +336,7 @@ Plain minitest does not support running tests by line number, only by name, so w
"label": "test $ZED_RELATIVE_FILE:$ZED_ROW",
"command": "bundle",
"args": ["exec", "rspec", "\"$ZED_RELATIVE_FILE:$ZED_ROW\""],
+ "cwd": "$ZED_WORKTREE_ROOT",
"tags": ["ruby-test"]
}
]
@@ -369,7 +372,7 @@ The Ruby extension provides a debug adapter for debugging Ruby code. Zed's name
"label": "Debug Rails server",
"adapter": "rdbg",
"request": "launch",
- "command": "$ZED_WORKTREE_ROOT/bin/rails",
+ "command": "./bin/rails",
"args": ["server"],
"cwd": "$ZED_WORKTREE_ROOT",
"env": {