There are a lot of examples on how to perform javascript tests with Capybara/Selenium/Rspec in which you can write a test like so:
it \"does som
Hmm I noticed a couple lines in the docs that seem to say that the above can only be done in Rspec
However, if you are using RSpec or Cucumber, you may instead want to consider leaving the faster :rack_test
as the default_driver
, and marking only those tests that require a JavaScript-capable driver using :js => true
or @javascript
, respectively.