Using Let and Context to Modularize RSpec Tests

(Last Updated: 2020-01-06)

When test suites contain a lot of duplication, coupling occurs at an individual spec basis. By utilizing core RSpec functionality, developers can clean up specs in order to reduce duplication and add clarity to the focal point of the spec.