Agile Web Development with Rails 7: Unused Order Fixtures (pg 257-258)


On Page 257, we create two new order fixtures “another_one” and “other_customer”. The text states “We have one we can use already, but ideally we’d have a total of two orders for the user sending the email and a third order from another user. That would validate that we’re both searching for the right user and selecting the most recent order.”

The test on on 258 defines variables for these fixtures, but doesn’t use them:

older_order = orders(:another_one)
non_customer = orders(:other_customer)

Just wanted to point this out in case a) it was intended to use these in the test and the test could be updated or b) they’re not needed and could possibly be removed.