I’m following Agile Edition 1. On page 148 it suggests using instance
variables named after the fixture, for example:
assert_equal @version_control_book.id, @product.id
When I introduce this type of instance variable into my test, I get the
RuntimeError: Called id for nil, which would mistakenly be 4 – if you
really wanted the id of nil, use object_id
@group = Group.find(@alice_group.id)
where alice_group is my Group fixture.
I know there are a few issues with the testing section of the Agile book
- have I just hit one?