© Greg Donald 2024
G. DonaldHands-on Test-Driven Developmenthttps://doi.org/10.1007/978-1-4842-9748-3_8

8. Build Homepage Contents

Greg Donald1  
(1)
Clarksville, USA
 

In the last chapter, we created our first page, the home page, and our show page for displaying individual page objects. These were minimal efforts with just enough content for creating our first two system specs. In this chapter, we will take things further and complete building out these pages using our remaining content fields.

View Specs

If you recall, we used the HTML <article> tag to wrap our page content. This is a good choice as it has semantic value for accessibility and search engine optimization. It’s not hard to see how our homepage, which uses an article tag to list all ...

Get Hands-on Test-Driven Development: Using Ruby, Ruby on Rails, and RSpec now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.