title: How to check RSpec code coverage in Rails application?
body: <p>I'm working on my very first simple Rails app. And now I just did my homework which I should do before anything else - RSpec tests. I delayed it on purpose because of no experience I even wasn't sure what for and how to do RSpec tests. Finally, I have probably most tests for my models and controllers and it's time for me to think about how much my tests cover the code.</p>
  <p>Then I found <code>rake stats</code>, which shows me that:</p>
  <pre><code>+----------------------+-------+-------+---------+---------+-----+-------+
  | Name                 | Lines |   LOC | Classes | Methods | M/C | LOC/M |
  +----------------------+-------+-------+---------+---------+-----+-------+
  | Controllers          |   214 |   161 |       4 |      29 |   7 |     3 |
  | Helpers              |    12 |    12 |       0 |       1 |   0 |    10 |
  | Models               |    17 |    13 |       2 |       0 |   0 |     0 |
  | Mailers              |     0 |     0 |       0 |       0 |   0 |     0 |
  | Javascripts          |    29 |     3 |       0 |       1 |   0 |     1 |
  | Libraries            |     0 |     0 |       0 |       0 |   0 |     0 |
  | Helper specs         |    15 |     4 |       0 |       0 |   0 |     0 |
  | Controller specs     |   170 |   137 |       0 |       0 |   0 |     0 |
  | Model specs          |    78 |    65 |       0 |       0 |   0 |     0 |
  +----------------------+-------+-------+---------+---------+-----+-------+
  | Total                |   535 |   395 |       6 |      31 |   5 |    10 |
  +----------------------+-------+-------+---------+---------+-----+-------+
    Code LOC: 189     Test LOC: 206     Code to Test Ratio: 1:1.1
  </code></pre>
  <p>It shows how many Classes and Methods my controllers and models have. But what I'm missing here is how many are tested. I wish to have it instead of zeros there. At the same time would be nice to know which methods are not covered by tests. Is there a gem that provides that information or some other way to check it?</p>