I have rspec test code like this
describe \'Utils\' do puts 1111 describe \'#time_condition\' do puts 2221 it do puts \'aaa\' end
If your project has rspec in its bin folder, you can try the following:
rspec
bin
{ "name": "RSpec - all", "type": "Ruby", "request": "launch", "cwd": "${workspaceRoot}", "program": "${workspaceRoot}/bin/rspec", "args": [ "-I", "${workspaceRoot}" ] },