title: How do you test if a div has a certain css style in rspec/capybara?
body: <p>How do you test if a div tag has a certain css style?  I'm trying to test if it has <code>display:none;</code> or <code>display:block</code>. </p>
  
  <p>I tried the following but its giving me an error:</p>
  
  <pre><code>it {should have_selector('signup_server_generic_errors', /display:\s*none/)}
  </code></pre>