title: Get all classes of an element in capybara?
body: <p>Using capybara, is there a way to get all of the css classes of an element?  Looking at the documentation, I do not see any easy way of doing this. </p>
  
  <p>Also, given an element, elem, and a css class, someclass, should <code>elem.has_css?('.someclass')</code> be equivalent to the jquery <code>$(elem).hasClass('someclass')</code>?</p>
  
  <p>This particular test is using Selenium, because it involves javascript.</p>