February 2019
Intermediate to advanced
240 pages
5h 25m
English
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 ...