February 2019
Intermediate to advanced
240 pages
5h 25m
English
In the previous chapter, we completed our standard app setup by adding a Postgres database. However, we’re not quite done with development yet. As professional Ruby developers, we value well-tested code that gives us confidence that we’re delivering reliable software. As we rebuild our development environment around Docker, we need to find out how testing fits into the picture. Whatever your personal preferences around testing, it’s important to know how to get our testing tools working and playing nice with Docker so that you can use them as needed.
In this chapter, we’re going to set up the popular Ruby testing framework: RSpec. I’ve chosen RSpec over Rails’ default—Minitest—for a couple of reasons. ...