Running Tests: Configuring RSpec

Learn to configure RSpec for tests that rely on JavaScript.

Configuring RSpec system tests

We have created a new Capybara driver, but how do we configure RSpec to use it?

First, we have to edit spec/rails_helper.rb to require our new Capybara driver so that it is loaded:

Get hands-on with 1200+ tech skills courses.