Define further RSpec utilities, exercise 8.5.2