Listing 5.3.9 Using an RSpec shared example

Using an RSpec shared example to eliminate test duplication.