Capybaras eating cucumbers
(or, testing static sites with Cucumber and Capybara)
OMG you’re crazy!
No, we’re not. The latest version of Cucumber comes with capybara, which makes it super simple to use Selenium. Capybara just uses any rack app, so we made a simple rack app that serves our static files. So here is what we ended up with in
Now just copy over the web_steps.rb that cucumber generates from another project, and proceed as normal.