7.1.3 Testing the user show page (with factories)

Now that we have a minimal working profile, it’s time to start working
on the version mocked up in Figure 7.1. As with the creation of static
pages (Chapter 3) and the User model (Chapter 6), we’ll proceed using
test-driven development.

Recall from Section 5.4.2 that we have elected to use integration tests
for the pages associated with the Users resource. In the case of the
signup page, our test first visits the signup_path and then checks for
the right h1 and title tags, as seen in Listing 5.34 and reproduced in
Listing 7.6. (Note that we’ve omitted the full_title helper from Section
5.3.4 since the full title is already adequately tested there.)