Flag N+1 queries with bullet in Rspec : <p>I'm trying to flag N+1 and places in the code where I can add counter caches, using the <a href="https://github.com/flyerhzm/bullet" rel="noreferrer">bullet gem</a>. But doing everything manually to check N+1 queries, seems very painfully, so I tried to use Bullet with Rspec, using the setup steps they recommend:</p>

<pre><code># config/environments/test.rb
config.after_initialize do
  Bullet.enable = true
  Bullet.bullet_logger = true
  Bullet.raise = true # raise an error if n+1 query occurs
end

# spec/spec_helper.rb
if Bullet.enable?
  config.before(:each) do
    Bullet.start_request
  end

  config.after(:each) do
    Bullet.perform_out_of_channel_notifications if Bullet.notification?
    Bullet.end_request
  end
end
</code></pre>

<p>But when I run the specs, seems to flag N+1 queries within specs itself rather than the app. Do you know if it's possible to achieve what I want?</p>
