Quick Recap
By now, using Docker should be starting to feel pretty familiar. In fact, much of this chapter was standard stuff we’d do in Rails—Docker got out of our way. Things got a little more tricky when it came to tests requiring JavaScript, but having a ready-made image with Selenium-driven Chrome made the installation of these a breeze—that’s where Docker shines.
In summary:
-
We set up and installed RSpec.
-
We saw how to run our specs in a Docker environment.
-
We set up system specs and ran tests using the default RackTest driver.
-
We got our system specs to work even when JavaScript is required, by configuring Capybara to use a Selenium-driven Chrome browser running in a separate container.
-
We made our JavaScript system tests faster by configuring ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access