title: haml rspec missing template
body: <p>This really caught me unguarded. The stocks/index.html.haml renders without problem in browser after I installed the haml-rails gem. However, when I tried to test it using rspec/capybara </p>
  
  <pre><code>describe "StockPages" do
    describe "stocks/index.html.haml" do
      before {visit stocks_path}
      subject {page}
      it { should have_selector('table#Result')  }
    end
  end
  </code></pre>
  
  <p>I got this error:</p>
  
  <pre><code>Failure/Error: before {visit stocks_path}
       ActionView::MissingTemplate:
         Missing template stocks/index, application/index with {:locale=&gt;[:en], :formats=&gt;[:html], :handlers=&gt;[:erb, :builder, :coffee]}.
  </code></pre>
  
  <p>How do I solve this?
  Thanks</p>