I'm using minitest/spec syntax, and have the following task configured as per the official docs:
[
{
"label": "-Itest $ZED_RELATIVE_FILE -n /$ZED_CUSTOM_RUBY_TEST_NAME/",
"command": "bundle",
"args": [
"exec",
"ruby",
"-Itest",
"$ZED_RELATIVE_FILE",
"-n",
"\"$ZED_CUSTOM_RUBY_TEST_NAME\""
],
"cwd": "$ZED_WORKTREE_ROOT",
"tags": ["ruby-test"]
}
]
However, for it "foo bar", the $ZED_CUSTOM_RUBY_TEST_NAME variable turns out to be /"foo bar"/ instead of /foo bar/. But test "foo bar" correctly resolves to /foo bar/, so it seems the problem is with it specifically.