I'm using Cumcumber + capybara + selenium to run automated testing, but I'm having trouble finding a way to assert that a javascript alert is displayed.
This question seems has a solution with selenium, but I can't figure out how to call the selenium object using Capybara.
Is there a simple way to test for alerts using Capybara? Or is there a workaround?