Skip to content

$ZED_CUSTOM_RUBY_TEST_NAME includes double quotes for it blocks #222

@janko

Description

@janko

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 (resulting in /"foo bar"/). But test "foo bar" correctly resolves to foo bar, so it seems the problem is with it specifically.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions