Ruby On Rails Lesson
Passing Title Tests
Now we’ll get our title tests to pass and at the same time add the full HTML structure needed to make valid web pages. Let’s start with the Home page (Listing 3.19), using the same basic HTML skeleton as in the ‘‘hello’’ page from Listing 3.3.
Listing 3.19 uses the title tested for in Listing 3.18: