title: RSpec2 and Capybara
body: <p>Capybara is confusing me. If I use Capybara in combination with Ruby on Rails 3 and RSpec 2, then in RSpec request tests, the following matcher works:</p>
  
  <pre><code>response.body.should have_selector "div.some_class"
  </code></pre>
  
  <p>The response object has the class <code>ActionDispatch::TestResponse</code>. But the following line, which <a href="https://github.com/jnicklas/capybara">should work officially</a>, does not work:</p>
  
  <pre><code>page.should have_selector "div.some_class"
  </code></pre>
  
  <p>The page object has the class <code>Capybara::Session</code>. In which cases do you have to use the <code>response.body</code> object and when do you have to use a <code>page</code> object ?</p>