title: rspec for chef resources
body: <p>I am new to rspec and I tried to write a spec test my cookbook, but it's failing. When I tried to test "chef exec rspec", it's unable to find resources and outputs: "No Chef resources found, skipping coverage calculation...".</p>
  
  <p>Here is the code and the spec:</p>
  
  <pre><code>group sq_group do
    system true
  end
  
  user sq_user do
    gid sq_group
    system true
  end
  </code></pre>
  
  <p>the above code is for group and user and below is my rspec for testing user and group.</p>
  
  <pre><code>require 'spec_helper'
  ChefSpec::Coverage.start!
  
  describe 'recipes::default' do
    context 'Mostly defaults' do
      let(:chef_run) do
        ChefSpec::SoloRunner.new(platform: 'platform_name') do |node|
          default['cookbookname']['user'] = 'user'
          default['cookbook']['group'] = 'group'
        end.converge(default)
      end
    end
  end
  </code></pre>