Run rspec on VS Code

后端 未结 4 1107
日久生厌
日久生厌 2021-01-19 14:04

I have rspec test code like this

describe \'Utils\' do

  puts 1111
  describe \'#time_condition\' do
    puts 2221
    it do
      puts \'aaa\'
    end
             


        
4条回答
  •  醉话见心
    2021-01-19 14:18

    OK. I solved it! My fault is setting wrong value to program. Program must be rspec path.

    ...
    {
      "name": "RSpec - all",
      "type": "Ruby",
      "request": "launch",
      "cwd": "${workspaceRoot}",
      "program": "D:/Ruby/Ruby21/bin/rspec",
      "args": [
        "--pattern",
        "${workspaceRoot}/spec/**/*_rspec.rb"
      ]
    },
    ...
    

提交回复
热议问题