Run rspec on VS Code
<p>I have rspec test code like this</p>

<pre><code>describe 'Utils' do

  puts 1111
  describe '#time_condition' do
    puts 2221
    it do
      puts 'aaa'
    end
    puts 2223
  end
end
</code></pre>

<p>my launch.json like this</p>

<pre><code>{
  "name": "RSpec - all",
  "type": "Ruby",
  "request": "launch",
  "cwd": "${workspaceRoot}",
  "program": "${workspaceRoot}/spec/*_rspec.rb",
  "args": [
    "--pattern",
    "*_rspec.rb"
  ]
},
</code></pre>

<p>when I run test on vscode, I got</p>

<pre><code>1111
2221
2223
</code></pre>

<p>when I run test by command, got</p>

<pre><code>&gt;rspec spec --pattern *_rspec.rb
1111
2221
2223
aaa
.

Finished in 0.003 seconds (files took 0.23602 seconds to load)
1 example, 0 failures
</code></pre>

<p>As your can see, no 'aaa' output, means no 'it' was executed.
So...How can I make 'it' to run on vscode?</p>

<p>by the way, my spec config files (generated by rspec --init)like</p>

<p>.rspec</p>

<pre><code>--color
--require spec_helper
</code></pre>

<p>spec\spec_helper.rb</p>

<pre><code>RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end

  config.profile_examples = 10

  config.order = :random

  Kernel.srand config.seed
end
</code></pre>

<p>VScode : 1.4.0</p>

<p>Ruby Extensions : 0.5.3</p>

<p>thanks</p>