How to test the value of a CSS selector using Capybara and RSpec?

Viewed 6480

The HTML page is supposed to have the following code:

<div class="user-image" style="background-image:url(/images/user_image.jpg)">

How would you check for this using Capybara and RSpec?

2 Answers
Related