title: How to write a capybara matcher that checks that a div is empty?
body: <p>I'm looking at the capybara matchers documentation: <a href="http://rubydoc.info/github/jnicklas/capybara/master/Capybara/Node/Matchers" rel="nofollow">http://rubydoc.info/github/jnicklas/capybara/master/Capybara/Node/Matchers</a></p>
  
  <p>I can't seem to find way to check that a <code>div</code> is blank. I.e. I want to verify the presence of something like</p>
  
  <pre><code>&lt;div class="test"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I thought about <code>assert_no_selector</code>, but I don't think text nodes within a <code>div</code> show up. <code>has_no_content</code> doesn't seem to be working.</p>